|
|
|
@ -13,11 +13,6 @@ if [ -d "/var/www/machete/themes/${theme}/" ]; then
@@ -13,11 +13,6 @@ if [ -d "/var/www/machete/themes/${theme}/" ]; then
|
|
|
|
|
fi |
|
|
|
|
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 |
|
|
|
@ -25,5 +20,17 @@ if [ -e /usr/sbin/nginx ]; then
@@ -25,5 +20,17 @@ if [ -e /usr/sbin/nginx ]; then
|
|
|
|
|
/usr/sbin/nginx |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
echo "Start php-fpm." |
|
|
|
|
php-fpm -F |
|
|
|
|
|
|
|
|
|
## 启动bot主程序 |
|
|
|
|
if [ -e /usr/local/bin/php ]; then |
|
|
|
|
echo "Start main bot." |
|
|
|
|
cd /var/www/machete/ |
|
|
|
|
/usr/local/bin/php bin/command.php mainBot & |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 启动php-fpm |
|
|
|
|
if [ -e /usr/local/sbin/php-fpm ]; then |
|
|
|
|
echo "Start php-fpm." |
|
|
|
|
php-fpm -F |
|
|
|
|
fi |