Created
March 6, 2020 14:56
-
-
Save darknoon29/4cd7b02e8ddf644c7b3ba64f6dafe693 to your computer and use it in GitHub Desktop.
Set OGSpy File Rights
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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