mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
vesta install for ubuntu-20.04 and ubuntu22.04
This commit is contained in:
parent
ad3bfbc8c4
commit
fb40cb7940
1 changed files with 13 additions and 8 deletions
|
@ -572,7 +572,7 @@ service vesta stop > /dev/null 2>&1
|
||||||
cp -r $VESTA/* $vst_backups/vesta > /dev/null 2>&1
|
cp -r $VESTA/* $vst_backups/vesta > /dev/null 2>&1
|
||||||
apt-get -y remove vesta vesta-nginx vesta-php > /dev/null 2>&1
|
apt-get -y remove vesta vesta-nginx vesta-php > /dev/null 2>&1
|
||||||
apt-get -y purge vesta vesta-nginx vesta-php > /dev/null 2>&1
|
apt-get -y purge vesta vesta-nginx vesta-php > /dev/null 2>&1
|
||||||
rm -rf $VESTA > /dev/null 2>&1
|
#rm -rf $VESTA > /dev/null 2>&1
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
@ -702,6 +702,15 @@ 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 #
|
||||||
|
@ -996,6 +1005,7 @@ if [ "$mysql" = 'yes' ]; then
|
||||||
# Configuring MySQL/MariaDB
|
# Configuring MySQL/MariaDB
|
||||||
cp -f $vestacp/mysql/$mycnf /etc/mysql/my.cnf
|
cp -f $vestacp/mysql/$mycnf /etc/mysql/my.cnf
|
||||||
if [ "$release" != '16.04' ]; then
|
if [ "$release" != '16.04' ]; then
|
||||||
|
#mysql_secure_installation
|
||||||
mysql_install_db
|
mysql_install_db
|
||||||
fi
|
fi
|
||||||
if [ "$release" == '18.04' ]; then
|
if [ "$release" == '18.04' ]; then
|
||||||
|
@ -1003,14 +1013,9 @@ 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"
|
||||||
|
|
||||||
# Securing MySQL/MariaDB installation
|
# Securing MySQL/MariaDB installation
|
||||||
mpass=$(gen_pass)
|
mpass=$(gen_pass)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue