From 28c92c5989a8101986ba4a24e29c1fa4d0e48e22 Mon Sep 17 00:00:00 2001 From: wangjianhua Date: Wed, 6 Jul 2022 06:29:18 +0000 Subject: [PATCH] + Add upgrade command into init shell. --- docker/rootfs/etc/s6/s6-init/run | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/rootfs/etc/s6/s6-init/run b/docker/rootfs/etc/s6/s6-init/run index 543ce11c..f4946da6 100755 --- a/docker/rootfs/etc/s6/s6-init/run +++ b/docker/rootfs/etc/s6/s6-init/run @@ -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 \ No newline at end of file +fi + +# Try upgrade +php /apps/qucheng/www/upgrade-cli.php && chown -R www-data:www-data /apps/qucheng/tmp/log