Browse Source

improve docker entry script to avoid custom_config.json rebuild

master
filesite 4 months ago
parent
commit
83440ccb4e
  1. 9
      docker-entrypoint.sh

9
docker-entrypoint.sh

@ -5,9 +5,12 @@ if [ -d "/var/www/machete/themes/${theme}/" ]; then
## 复制对应皮肤的配置文件 ## 复制对应皮肤的配置文件
cd /var/www/machete/runtime/ cd /var/www/machete/runtime/
rm -f custom_config.json
cp "../conf/custom_config_${theme}.json" ./custom_config.json ## 避免容器重启后重新生成配置文件
chmod 777 custom_config.json if [ ! -f custom_config.json ]; then
cp "../conf/custom_config_${theme}.json" ./custom_config.json
chmod 777 custom_config.json
fi
fi fi
## 启动samba ## 启动samba

Loading…
Cancel
Save