Explorar el Código

The agent launcher/updater now sets the correct permissions for 'screenlogs' folder and files.

DieFeM hace 12 años
padre
commit
bb441b2e1e
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      bin/ogp_agent

+ 3 - 0
bin/ogp_agent

@@ -15,6 +15,9 @@ if [ -d "$AGENTDIR/steamcmd" ]; then
 	find $AGENTDIR/steamcmd -iname \*.dll -exec chmod +x {} \;
 	find $AGENTDIR/steamcmd -iname \*.exe -exec chmod +x {} \;
 fi
+if [ -d "$AGENTDIR/screenlogs" ]; then
+	chmod -Rf ugo=rw $AGENTDIR/screenlogs
+fi
 chmod +x $AGENTDIR/ogp_agent.pl &> /dev/null
 chmod +x /usr/bin/ogp_agent &> /dev/null
 chmod +x /usr/bin/ogp_install &> /dev/null