make update creates restart script and sets appropriate permissions again
authorRLB <nveid@yahoo.com>
Sat, 6 Aug 2011 00:05:54 +0000 (20:05 -0400)
committerRLB <nveid@yahoo.com>
Sat, 6 Aug 2011 00:05:54 +0000 (20:05 -0400)
Makefile.in
utils/checkrestart.sh

index 7f1688e1e843af9541740c110967d669d21a63ee..33ccdaa942c0760eb93363116d5ed038b99bb3a8 100644 (file)
@@ -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
index d29d625309408c0b3ce66d139e9fdcc17d7fe7c1..75e4ccd97b4e3c548886ed71bb4d52fe2608f819 100755 (executable)
@@ -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