-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-> Added a auto update script -> Added a version checker on stats page
- Loading branch information
Showing
2 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
cd /var/www/mythicaldash | ||
mariadb-dump -p mythicaldash > mythicaldash_backup.sql | ||
cd /var/www | ||
file_name="clientbackup.zip" | ||
|
||
if [ -e "$file_name" ]; then | ||
rm "$file_name" | ||
echo "$file_name deleted successfully." | ||
else | ||
echo "$file_name does not exist." | ||
fi | ||
zip -r clientbackup.zip mythicaldash/ | ||
|
||
cd /var/www/mythicaldash | ||
curl -Lo MythicalDash.zip https://github.com/mythicalltd/mythicaldash/releases/latest/download/MythicalDash.zip | ||
unzip -o MythicalDash.zip -d /var/www/mythicaldash | ||
dos2unix arch.bash | ||
sudo bash arch.bash | ||
rm /var/www/mythicaldash/public/FIRST_USER | ||
composer install --no-dev --optimize-autoloader | ||
./MythicalDash -migrate | ||
chown -R www-data:www-data /var/www/mythicaldash/* |
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