diff --git a/generate-lemp.sh b/generate-lemp.sh index 376b946..7ae3cd5 100755 --- a/generate-lemp.sh +++ b/generate-lemp.sh @@ -7,10 +7,10 @@ for i in *.ctl; do cp "$i" "$lempname" sed -i "s/virtualmin-lamp-stack/virtualmin-lemp-stack/" "$lempname" sed -i "s/LAMP/LEMP/g" "$lempname" - sed -i "s/apache2, /nginx-full | nginx-extras, webmin-virtualmin-nginx, webmin-virtualmin-nginx-ssl, /" "$lempname" - sed -i "s/libapache2-mod-fcgid, /fcgiwrap, /" "$lempname" - sed -i "s/libfcgi-dev, /fcgiwrap, /" "$lempname" - sed -i "s/apache2-suexec-custom, //" "$lempname" + sed -i "s/apache2\s*$/nginx-full | nginx-extras, webmin-virtualmin-nginx, webmin-virtualmin-nginx-ssl/" "$lempname" + sed -i "s/libapache2-mod-fcgid,\s*//" "$lempname" + sed -i "s/libfcgi-dev,\s*//" "$lempname" + sed -i "s/apache2-suexec-custom,\s*//" "$lempname" echo ' .' >> $lempname echo ' This file auto-generated by generate-lemp.sh' >> $lempname done