Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
修复 PHP MOD 卸载
Browse files Browse the repository at this point in the history
  • Loading branch information
xzhih committed May 1, 2018
1 parent 702aaf7 commit d1784a6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions onmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## @Author: triton
# @Date: 2017-07-29 06:10:54
# @Last Modified by: xzhih
# @Last Modified time: 2018-05-01 04:20:53
# @Last Modified time: 2018-05-01 17:37:48

# 软件包列表
pkglist="wget unzip grep sed tar ca-certificates php7 php7-cgi php7-cli php7-fastcgi php7-fpm php7-mod-mysqli php7-mod-pdo php7-mod-pdo-mysql nginx-extras libmariadb mariadb-server mariadb-client mariadb-client-extra"
Expand Down Expand Up @@ -459,8 +459,11 @@ set_passwd()
remove_onmp()
{
killall -9 nginx mysqld php-fpm
for data in $pkglist; do
opkg remove $data --force-depends
for pkg in $pkglist; do
opkg remove $pkg --force-depends
done
for mod in $phpmod; do
opkg remove $mod --force-depends
done
rm -rf /opt/wwwroot
rm -rf /opt/etc/nginx/vhost
Expand Down

0 comments on commit d1784a6

Please sign in to comment.