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 b616234 commit b111720
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 @@ -28,6 +28,7 @@ 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
sed -i 's/utf8mb4_0900_ai_ci/utf8mb4_unicode_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 b111720

Please sign in to comment.