scripts update

This commit is contained in:
Cold-Egg
2020-01-10 11:47:15 -05:00
parent b7646053ae
commit e30eb685f2
10 changed files with 67 additions and 132 deletions
+3 -1
View File
@@ -19,12 +19,14 @@ add_domain(){
docker-compose exec ${CONT_NAME} su -s /bin/bash lsadm -c "cd /usr/local/lsws/conf && domainctl.sh -add ${1}"
if [ ! -d "./sites/${1}" ]; then
mkdir -p ./sites/${1}/{html,logs,certs}
fi
fi
bash bin/webadmin.sh -r
}
del_domain(){
check_input ${1}
docker-compose exec ${CONT_NAME} su -s /bin/bash lsadm -c "cd /usr/local/lsws/conf && domainctl.sh -del ${1}"
bash bin/webadmin.sh -r
}
check_input ${1}