Skip to content

Commit

Permalink
Update restore.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Sep 29, 2023
1 parent 57370f8 commit b616234
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trunk/install/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ mv home/judge/src/web/upload /home/judge/src/web/
chown www-data -R /home/judge/src/web/
bzip2 -d var/backups/db_${BAKDATE}.sql.bz2
sed -i 's/COLLATE=utf8mb4_0900_ai_ci//g' var/backups/db_${BAKDATE}.sql
sed -i 's/COLLATE utf8mb4_0900_ai_ci//g' var/backups/db_${BAKDATE}.sql
if ! mysql -h $SERVER -u$USER -p$PASSWORD $DATABASE < var/backups/db_${BAKDATE}.sql ; then
mysql $DATABASE < var/backups/db_${BAKDATE}.sql
fi
Expand Down

0 comments on commit b616234

Please sign in to comment.