We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35ed083 commit 8ad7667Copy full SHA for 8ad7667
tnntsync.sh
@@ -1,5 +1,5 @@
1
#!/bin/sh
2
-DEBUG=1
+DEBUG=0
3
TNNTVAR=tnnt/var
4
bail()
5
{
@@ -50,6 +50,9 @@ do
50
then
51
echo "npcdata from $TAG ($NEWDATE) newer than local ($MYDATE) - replacing"
52
MYDATE=$NEWDATE # So we don't copy it multiple times needlessly
53
+ # Set perms first, so we don't try to read it before permissions are right.
54
+ chown games:games npcdata.$TAG
55
+ chmod 644 npcdata.$TAG
56
[ -f npcdata ] && mv npcdata npcdata.old #mv will not disrupt open file descriptors
57
mv npcdata.$TAG npcdata
58
fi
0 commit comments