mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 04:26:23 -07:00
Adding v-cd-www alias to root bash profile
This commit is contained in:
parent
85f39364a4
commit
6d752d93f5
2 changed files with 12 additions and 1 deletions
|
@ -2089,13 +2089,17 @@ if [ "$release" -gt 9 ]; then
|
|||
fi
|
||||
echo "ALLOW_BACKUP_ANYTIME='yes'" >> $VESTA/conf/vesta.conf
|
||||
echo "NOTIFY_ADMIN_FULL_BACKUP='$email'" >> $VESTA/conf/vesta.conf
|
||||
echo "== Adding FileManager license to vesta.conf"
|
||||
echo "FILEMANAGER_KEY='FREEFM'" >> $VESTA/conf/vesta.conf
|
||||
echo "================================================================"
|
||||
|
||||
# Removing old PHP sessions files
|
||||
cron=$(crontab -l | { cat; echo "10 2 * * 6 sudo find /home/*/tmp/ -type f -mtime +5 -exec rm {} \;"; } | crontab -)
|
||||
|
||||
echo "alias v-cd-www='source /usr/local/vesta/bin/v-change-dir-www'" >> /root/.bash_profile
|
||||
if [ -f "/root/.bash_profile" ]; then
|
||||
echo "== Adding v-cd-www alias to root bash profile"
|
||||
echo "alias v-cd-www='source /usr/local/vesta/bin/v-change-dir-www'" >> /root/.bash_profile
|
||||
fi
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# myVesta Access Info #
|
||||
|
|
|
@ -30,6 +30,13 @@ if ! grep -q "FILEMANAGER_KEY='FREEFM'" /usr/local/vesta/conf/vesta.conf; then
|
|||
echo "FILEMANAGER_KEY='FREEFM'" >> /usr/local/vesta/conf/vesta.conf
|
||||
fi
|
||||
|
||||
if [ -f "/root/.bash_profile" ]; then
|
||||
if ! grep -q "v-cd-www" /root/.bash_profile; then
|
||||
echo "== Adding v-cd-www alias to root bash profile"
|
||||
echo "alias v-cd-www='source /usr/local/vesta/bin/v-change-dir-www'" >> /root/.bash_profile
|
||||
fi
|
||||
fi
|
||||
|
||||
# Adding myVesta rules to SpamAssassin
|
||||
if [ -d "/etc/spamassassin" ]; then
|
||||
spamassassin_modified=0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue