Update dapostinstall.sh
This commit is contained in:
+1
-2
@@ -17,14 +17,13 @@ NS1_DEFAULT=${NS1_DEFAULT:-dns3.hitme.net.pl}
|
||||
read -p "Podaj adres NS2 [dns4.hitme.net.pl]: " NS2_DEFAULT
|
||||
NS2_DEFAULT=${NS2_DEFAULT:-dns4.hitme.net.pl}
|
||||
|
||||
echo "poprawa DNS"
|
||||
sed -i "/ns1=/c\ns1=$NS1_DEFAULT" /usr/local/directadmin/conf/directadmin.conf
|
||||
sed -i "/ns2=/c\ns2=$NS2_DEFAULT" /usr/local/directadmin/conf/directadmin.conf
|
||||
sed -i "/ns1=/c\ns1=$NS1_DEFAULT" /usr/local/directadmin/data/users/admin/user.conf
|
||||
sed -i "/ns2=/c\ns2=$NS2_DEFAULT" /usr/local/directadmin/data/users/admin/user.conf
|
||||
systemctl restart directadmin
|
||||
|
||||
read -p "Enter Podaj docelowy port SSH: " SSH_PORT
|
||||
read -p "Enter Podaj docelowy port SSH: " SSH_PORT=${SSH_PORT:-10022}
|
||||
|
||||
echo "Certyfikat SSL dla DirectAdmina"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user