Browse Source

improve docker entrypoint

master
filesite 5 months ago
parent
commit
a0b647362b
  1. 8
      docker-entrypoint.sh

8
docker-entrypoint.sh

@ -1,16 +1,14 @@
#!/bin/sh #!/bin/sh
theme=$1 theme=$1
if [ ! -d "/var/www/machete/themes/${theme}/" ]; then if [ -d "/var/www/machete/themes/${theme}/" ]; then
theme=webdirectory
fi
echo "Theme chosed [${theme}]." echo "Theme chosed [${theme}]."
## 复制对应皮肤的配置文件 ## 复制对应皮肤的配置文件
cd /var/www/machete/runtime/ cd /var/www/machete/runtime/
rm -f custom_config.json rm -f custom_config.json
cp "../conf/custom_config_${theme}.json" ./custom_config.json cp "../conf/custom_config_${theme}.json" ./custom_config.json
chown apache:apache custom_config.json chmod 777 custom_config.json
fi
## 启动samba ## 启动samba
if [ -e /usr/sbin/smbd ]; then if [ -e /usr/sbin/smbd ]; then

Loading…
Cancel
Save