From: RLB Date: Sat, 6 Aug 2011 00:05:54 +0000 (-0400) Subject: make update creates restart script and sets appropriate permissions again X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=ea7dbb73f3cebca4b4915f5e3aec6fa0b4104522;p=cobramush.git make update creates restart script and sets appropriate permissions again --- 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