Source code of filesite.io.
https://filesite.io
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
547 B
26 lines
547 B
#!/bin/sh |
|
theme=$1 |
|
if [ -d "/var/www/machete/themes/${theme}/" ]; then |
|
echo "Theme chosed [${theme}]." |
|
|
|
## 复制对应皮肤的配置文件 |
|
cd /var/www/machete/runtime/ |
|
rm -f custom_config.json |
|
cp "../conf/custom_config_${theme}.json" ./custom_config.json |
|
chmod 777 custom_config.json |
|
fi |
|
|
|
## 启动samba |
|
if [ -e /usr/sbin/smbd ]; then |
|
echo "Start smbd." |
|
/usr/sbin/smbd -D |
|
fi |
|
|
|
## 启动nginx和php-fpm |
|
if [ -e /usr/sbin/nginx ]; then |
|
echo "Start nginx." |
|
/usr/sbin/nginx |
|
fi |
|
|
|
echo "Start php-fpm." |
|
php-fpm -F
|
|
|