Skip to content

Instantly share code, notes, and snippets.

@darknoon29
Created March 6, 2020 14:56
Show Gist options
  • Save darknoon29/4cd7b02e8ddf644c7b3ba64f6dafe693 to your computer and use it in GitHub Desktop.
Save darknoon29/4cd7b02e8ddf644c7b3ba64f6dafe693 to your computer and use it in GitHub Desktop.
Set OGSpy File Rights
#!/bin/sh
OGSPY_FOLDER="/srv/www/ogspy.fr/ogspy337"
if [ -f "$OGSPY_FOLDER/lang/lang_main.php" ]
then
echo "Setting OGSpy Rights"
chmod -R 755 $OGSPY_FOLDER
chown -R www-data:www-data $OGSPY_FOLDER
chmod 640 "$OGSPY_FOLDER/parameters/id.php"
else
echo "OGSpy not found"
fi
echo "OGSpy Rights Applied"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment