Skip to content

Commit 955f3e7

Browse files
author
Serghey Rodin
committed
cosmetix fixes in ubuntu installer
1 parent f59ebc4 commit 955f3e7

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

install/vst-install-ubuntu.sh

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ cp -r /etc/bind/* $vst_backups/bind > /dev/null 2>&1
495495
service vsftpd stop > /dev/null 2>&1
496496
cp /etc/vsftpd.conf $vst_backups/vsftpd > /dev/null 2>&1
497497

498-
# Backing up ProFTPD configuration
498+
# Backup ProFTPD configuration
499499
service proftpd stop > /dev/null 2>&1
500500
cp /etc/proftpd.conf $vst_backups/proftpd > /dev/null 2>&1
501501

@@ -623,45 +623,47 @@ fi
623623
# Install packages #
624624
#----------------------------------------------------------#
625625

626-
# Update system packages
626+
# Updating system
627627
apt-get update
628628

629-
# Disable daemon autostart /usr/share/doc/sysv-rc/README.policy-rc.d.gz
630-
echo -e '#!/bin/sh \nexit 101' > /usr/sbin/policy-rc.d
631-
chmod a+x /usr/sbin/policy-rc.d
629+
# Disabling daemon autostart /usr/share/doc/sysv-rc/README.policy-rc.d.gz
630+
#echo -e '#!/bin/sh \nexit 101' > /usr/sbin/policy-rc.d
631+
#chmod a+x /usr/sbin/policy-rc.d
632632

633-
# Install apt packages
633+
# Installing apt packages
634634
apt-get -y install $software
635635
check_result $? "apt-get install failed"
636636

637-
# Restore policy
637+
# Restoring policy
638638
rm -f /usr/sbin/policy-rc.d
639639

640640

641641
#----------------------------------------------------------#
642642
# Configure system #
643643
#----------------------------------------------------------#
644644

645-
# Enable SSH password auth
645+
# Enabling SSH password auth
646646
sed -i "s/rdAuthentication no/rdAuthentication yes/g" /etc/ssh/sshd_config
647647
service ssh restart
648648

649-
# Disable AWStats cron
649+
# Disabling AWStats cron
650650
rm -f /etc/cron.d/awstats
651651

652652
# Set directory color
653653
echo 'LS_COLORS="$LS_COLORS:di=00;33"' >> /etc/profile
654654

655-
# Register /usr/sbin/nologin
656-
echo "/usr/sbin/nologin" >> /etc/shells
655+
# Registering /usr/sbin/nologin
656+
if [ -z "$(grep nologin /etc/shells)" ]; then
657+
echo "/usr/sbin/nologin" >> /etc/shells
658+
fi
657659

658-
# NTP Sync
660+
# Configuring NTP
659661
echo '#!/bin/sh' > /etc/cron.daily/ntpdate
660662
echo "$(which ntpdate) -s ntp.ubuntu.com" >> /etc/cron.daily/ntpdate
661663
chmod 775 /etc/cron.daily/ntpdate
662664
ntpdate -s ntp.ubuntu.com
663665

664-
# Setup rssh
666+
# Adding rssh
665667
if [ -z "$(grep /usr/bin/rssh /etc/shells)" ]; then
666668
echo /usr/bin/rssh >> /etc/shells
667669
fi
@@ -704,7 +706,6 @@ chmod -R 750 $VESTA/data/queue
704706
chmod 660 $VESTA/log/*
705707
rm -f /var/log/vesta
706708
ln -s $VESTA/log /var/log/vesta
707-
chown admin:admin $VESTA/data/sessions
708709
chmod 770 $VESTA/data/sessions
709710

710711
# Generating Vesta configuration

0 commit comments

Comments
 (0)