u
This commit is contained in:
parent
e3d8ce093f
commit
09cf702702
@ -62,6 +62,10 @@ echo "<<< Disallow root login: #PermitRootLogin yes"
|
|||||||
sed -i "s/^PermitRootLogin yes/#PermitRootLogin yes/g" /etc/ssh/sshd_config
|
sed -i "s/^PermitRootLogin yes/#PermitRootLogin yes/g" /etc/ssh/sshd_config
|
||||||
service sshd restart
|
service sshd restart
|
||||||
|
|
||||||
|
#echo "<<< autologin for Xfce: /etc/lightdm/lightdm.conf"
|
||||||
|
#sed -i "s/^#autologin-user=$/autologin-user=$NewUser/g" /etc/lightdm/lightdm.conf
|
||||||
|
#sed -i "s/^#autologin-user-timeout=0$/autologin-user-timeout=0/g" /etc/lightdm/lightdm.conf
|
||||||
|
|
||||||
echo "<<< Configure autostart"
|
echo "<<< Configure autostart"
|
||||||
if [ -f /etc/rc.local ]
|
if [ -f /etc/rc.local ]
|
||||||
then
|
then
|
||||||
|
@ -7,11 +7,11 @@ if [ v$1 != v ]
|
|||||||
then
|
then
|
||||||
nodeVersion=$1
|
nodeVersion=$1
|
||||||
else
|
else
|
||||||
read -p "Enter node version (leave blank for default 10) >> " nodeVersion
|
read -p "Enter node version (leave blank for default 12) >> " nodeVersion
|
||||||
if [ ! $nodeVersion ]
|
if [ ! $nodeVersion ]
|
||||||
then
|
then
|
||||||
echo Use default node version 10
|
echo Use default node version 12
|
||||||
nodeVersion=10
|
nodeVersion=12
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user