Skip to content

Commit

Permalink
+ Add upgrade command into init shell.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjianhua committed Jul 6, 2022
1 parent 9a22a77 commit 28c92c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/rootfs/etc/s6/s6-init/run
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@ if [ ! -f "/data/.initdb" ];then

# Import qucheng data
mysql_import_to_db "$MYSQL_DB" "/apps/qucheng/db/data.sql" && touch /data/.initdb
fi
fi

# Try upgrade
php /apps/qucheng/www/upgrade-cli.php && chown -R www-data:www-data /apps/qucheng/tmp/log

0 comments on commit 28c92c5

Please sign in to comment.