From ea7dbb73f3cebca4b4915f5e3aec6fa0b4104522 Mon Sep 17 00:00:00 2001 From: RLB Date: Fri, 5 Aug 2011 20:05:54 -0400 Subject: [PATCH] make update creates restart script and sets appropriate permissions again --- Makefile.in | 2 +- utils/checkrestart.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 7f1688e..33ccdaa 100644 --- a/Makefile.in +++ b/Makefile.in @@ -141,7 +141,7 @@ $(GAMEDIR)/restrict.cnf: game/restrictcnf.dst $(GAMEDIR)/names.cnf: game/namescnf.dst if [ ! -f game/names.cnf ]; then \ - $(CP) game/namescnf.dst $(GAMEDIR)/names.cnf \ + $(CP) game/namescnf.dst $(GAMEDIR)/names.cnf; \ fi $(GAMEDIR)/restart: game/restart.dst diff --git a/utils/checkrestart.sh b/utils/checkrestart.sh index d29d625..75e4ccd 100755 --- a/utils/checkrestart.sh +++ b/utils/checkrestart.sh @@ -4,6 +4,7 @@ if test ! -f game/restart ; then echo "Creating restart script from restart.dst"; cp game/restart.dst game/restart; + chmod 750 game/restart; else read -p "Restart script has changed in this distribution. Should we replace your current restart script with ours?" -n 1; if [[ $REPLY =~ ^[Yy]$ ]];then @@ -11,6 +12,7 @@ else cp game/restart game/restart.bup; echo "Moving restart.dst to restart."; cp game/restart.dst game/restart; + chmod 750 game/restart; else echo -e "\nOk.. not copying"; fi -- 2.30.2