Last active
July 4, 2023 14:14
-
-
Save tolgahanakgun/5972bd94269c7c5067da83af2162176a to your computer and use it in GitHub Desktop.
update filegator
This file contains hidden or 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/bash | |
| wget -O /tmp/filegator_latest.zip https://raw.githubusercontent.com/filegator/static/master/builds/filegator_latest.zip | |
| mkdir /tmp/filegator | |
| unzip /tmp/filegator_latest.zip -d /tmp/filegator | |
| cd /var/www/html/filegator | |
| sudo find . ! -name . -prune ! -path ./private \ | |
| ! -path ./repository \ | |
| ! -path ./configuration.php \ | |
| -exec rm -rf {} \; | |
| cd /tmp/filegator/filegator | |
| sudo find . ! -name . -prune ! -path ./private \ | |
| ! -path ./repository \ | |
| ! -path ./configuration.php \ | |
| -exec mv {} /var/www/html/filegator/ \; | |
| sudo chown -R www-data:www-data /var/www/html/filegator/ | |
| sudo chmod -R 775 /var/www/html/filegator/ | |
| rm -rf /tmp/filegator | |
| rm -f /tmp/filegator_latest.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment