mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
Removing rssh
This commit is contained in:
parent
4b184ab7f5
commit
792edbe685
1 changed files with 10 additions and 9 deletions
|
@ -654,15 +654,16 @@ echo "$(which ntpdate) -s pool.ntp.org" >> /etc/cron.daily/ntpdate
|
||||||
chmod 775 /etc/cron.daily/ntpdate
|
chmod 775 /etc/cron.daily/ntpdate
|
||||||
ntpdate -s pool.ntp.org
|
ntpdate -s pool.ntp.org
|
||||||
|
|
||||||
# Setup rssh
|
if [ "$release" -eq 9 ]; then
|
||||||
if [ -z "$(grep /usr/bin/rssh /etc/shells)" ]; then
|
# Setup rssh
|
||||||
echo /usr/bin/rssh >> /etc/shells
|
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
|
||||||
fi
|
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 #
|
||||||
|
@ -867,7 +868,7 @@ if [ "$apache" = 'yes' ]; then
|
||||||
echo "# Powered by vesta" > /etc/apache2/sites-available/default
|
echo "# Powered by vesta" > /etc/apache2/sites-available/default
|
||||||
echo "# Powered by vesta" > /etc/apache2/sites-available/default-ssl
|
echo "# Powered by vesta" > /etc/apache2/sites-available/default-ssl
|
||||||
echo "# Powered by vesta" > /etc/apache2/ports.conf
|
echo "# Powered by vesta" > /etc/apache2/ports.conf
|
||||||
echo -e "/home\npublic_html/cgi-bin" > /etc/apache2/suexec/www-data
|
# echo -e "/home\npublic_html/cgi-bin" > /etc/apache2/suexec/www-data
|
||||||
touch /var/log/apache2/access.log /var/log/apache2/error.log
|
touch /var/log/apache2/access.log /var/log/apache2/error.log
|
||||||
mkdir -p /var/log/apache2/domains
|
mkdir -p /var/log/apache2/domains
|
||||||
chmod a+x /var/log/apache2
|
chmod a+x /var/log/apache2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue