Commit a223407c authored by w4t's avatar w4t

wtserver 0.17

parent 5369d2ca
OS_default_PHP_back() {
update-alternatives --set php /usr/bin/php8.2
update-alternatives --set php-cgi /usr/bin/php-cgi8.2
update-alternatives --set php-fpm.sock /run/php/php8.2-fpm.sock
update-alternatives --set php /usr/bin/php8.2 >> $PROGRAMS_INSTALL_LOG_FILES 2>&1
update-alternatives --set php-cgi /usr/bin/php-cgi8.2 >> $PROGRAMS_INSTALL_LOG_FILES 2>&1
update-alternatives --set php-fpm.sock /run/php/php8.2-fpm.sock >> $PROGRAMS_INSTALL_LOG_FILES 2>&1
}
InstallPhp55() {
......
......@@ -5,7 +5,7 @@
InstallLetsEncrypt() {
local START_TIME=$SECONDS
echo -n -e "$IDENTATION_LVL_0 ${BWhite}Installing LetsEncrypt Certbot${NC}"
echo -n -e "$IDENTATION_LVL_0 ${BWhite}Installing LetsEncrypt Certbot${NC}\n"
if [ $CFG_CERTBOT_VERSION == "Certbot" ]; then
if [ $CFG_WEBSERVER == "apache" ]; then
......@@ -42,8 +42,9 @@ InstallLetsEncrypt() {
#wget -O - https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh | INSTALLONLINE=1 sh
#wget -O - https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh | sh -s -- --install-online -m wolftronics@wolftronics.hu
curl https://get.acme.sh | sh -s
acme.sh --set-default-ca --server letsencrypt
curl https://get.acme.sh | sh -s >> $PROGRAMS_INSTALL_LOG_FILES 2>&1
./root/.acme.sh/acme.sh --set-default-ca --server letsencrypt >> $PROGRAMS_INSTALL_LOG_FILES 2>&1
echo -e "[${green}DONE${NC}]"
USER_HOME="/home/$SUDO_USER/"
if [ ! -d "$USER_HOME/.acme.sh" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment