mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
removing the rssh and adding mysql for ubuntu 20 and 22 support
This commit is contained in:
parent
e0e75033bf
commit
ad3bfbc8c4
1 changed files with 6 additions and 10 deletions
|
@ -27,7 +27,7 @@ software="nginx apache2 apache2.2-common apache2-suexec-custom apache2-utils
|
||||||
libapache2-mod-ruid2 lsof mc mysql-client mysql-common mysql-server
|
libapache2-mod-ruid2 lsof mc mysql-client mysql-common mysql-server
|
||||||
ntpdate php-cgi php-common php-curl php-fpm phpmyadmin php-mysql
|
ntpdate php-cgi php-common php-curl php-fpm phpmyadmin php-mysql
|
||||||
phppgadmin php-pgsql postgresql postgresql-contrib proftpd-basic quota
|
phppgadmin php-pgsql postgresql postgresql-contrib proftpd-basic quota
|
||||||
roundcube-core roundcube-mysql roundcube-plugins rrdtool rssh spamassassin
|
roundcube-core roundcube-mysql roundcube-plugins rrdtool spamassassin
|
||||||
sudo vesta vesta-ioncube vesta-nginx vesta-php vesta-softaculous
|
sudo vesta vesta-ioncube vesta-nginx vesta-php vesta-softaculous
|
||||||
vim-common vsftpd webalizer whois zip net-tools"
|
vim-common vsftpd webalizer whois zip net-tools"
|
||||||
|
|
||||||
|
@ -702,15 +702,6 @@ echo "$(which ntpdate) -s ntp.ubuntu.com" >> /etc/cron.daily/ntpdate
|
||||||
chmod 775 /etc/cron.daily/ntpdate
|
chmod 775 /etc/cron.daily/ntpdate
|
||||||
ntpdate -s ntp.ubuntu.com
|
ntpdate -s ntp.ubuntu.com
|
||||||
|
|
||||||
# Adding rssh
|
|
||||||
if [ -z "$(grep /usr/bin/rssh /etc/shells)" ]; then
|
|
||||||
echo /usr/bin/rssh >> /etc/shells
|
|
||||||
fi
|
|
||||||
sed -i 's/#allowscp/allowscp/' /etc/rssh.conf
|
|
||||||
sed -i 's/#allowsftp/allowsftp/' /etc/rssh.conf
|
|
||||||
sed -i 's/#allowrsync/allowrsync/' /etc/rssh.conf
|
|
||||||
chmod 755 /usr/bin/rssh
|
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
# Configure Vesta #
|
# Configure Vesta #
|
||||||
|
@ -1012,6 +1003,11 @@ if [ "$mysql" = 'yes' ]; then
|
||||||
chown mysql:mysql /var/lib/mysql
|
chown mysql:mysql /var/lib/mysql
|
||||||
mysqld --initialize-insecure
|
mysqld --initialize-insecure
|
||||||
fi
|
fi
|
||||||
|
if [ "$release" != '18.04' ]; then
|
||||||
|
mkdir /var/lib/mysql
|
||||||
|
chown mysql:mysql /var/lib/mysql
|
||||||
|
mysqld --initialize-insecure
|
||||||
|
fi
|
||||||
update-rc.d mysql defaults
|
update-rc.d mysql defaults
|
||||||
service mysql start
|
service mysql start
|
||||||
check_result $? "mysql start failed"
|
check_result $? "mysql start failed"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue