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.
21 lines
391 B
21 lines
391 B
#!/bin/sh |
|
theme=$1 |
|
if [ ! -d "/var/www/machete/themes/${theme}/" ]; then |
|
theme=webdirectory |
|
fi |
|
|
|
echo "Theme chosed [${theme}]." |
|
|
|
## 复制对应皮肤的配置文件 |
|
cd /var/www/machete/conf/ |
|
rm -f app.php |
|
cp "template_${theme}.php" app.php |
|
|
|
|
|
## 启动nginx和php-fpm |
|
if [ -e /usr/sbin/nginx ]; then |
|
/usr/sbin/nginx |
|
fi |
|
if [ -e /usr/sbin/php-fpm8 ]; then |
|
/usr/sbin/php-fpm8 -D |
|
fi
|
|
|