fixing color + not calling fixperm everytime :)

This commit is contained in:
Benjamin Sonntag 2014-03-28 14:53:34 +01:00
parent 3bacd0f41e
commit 48cee467fc
5 changed files with 10 additions and 15 deletions

View File

@ -68,14 +68,15 @@ EOF
# Update rights on previous user's awstats configuration files
chown alterncpanel:root /etc/awstats/awstats.*.conf > /dev/null 2>&1 || true
echo "**********************************************"
echo "* ALTERNC-AWSTATS *"
echo "* Add an autorized user called 'admin' in *"
echo "* statistics section, so he will access *"
echo -e "\033[31m**********************************************"
echo "* ALTERNC-AWSTATS ACTION REQUESTED *"
echo "* If you add an autorized user called 'admin'*"
echo "* in statistics section, he will access *"
echo "* every stats of every users *"
echo "* *"
echo "* Please run alternc.install to fully deploy *"
echo "**********************************************"
echo -e "\033[0m"
;;
abort-upgrade|abort-remove|abort-deconfigure)

View File

@ -254,8 +254,6 @@ EOF
# important: postinst freezes without that:
db_stop
# instead of preinst, we launch it here :
/usr/lib/alternc/fixperms.sh
echo -e "\033[31m**********************************************"
echo "* *"
echo "* ALTERNC ACTION REQUESTED *"

View File

@ -17,11 +17,6 @@ case "$1" in
;;
upgrade)
# Set correct rights on files
# echo "/!\ Warning /!\ Defaults ACL will be applied"
# echo "If error, please remount $ALTERNC_LOC with ACL"
# echo "and re-run /usr/lib/alternc/fixperms.sh "
# /usr/lib/alternc/fixperms.sh
if dpkg --compare-versions "$2" lt "0.9.4"; then
echo "Upgrading bind configuration"

View File

@ -12,7 +12,7 @@ if [ ! -r "$CONFIG_FILE" ]; then
fi
if [ `id -u` -ne 0 ]; then
echo "fixperms.sh must be launched as root"
echo "3.0.0~2.sh must be launched as root"
exit 1
fi
@ -39,7 +39,7 @@ mysql --defaults-file=/etc/alternc/my.cnf --skip-column-names -B -e "$query" |fi
## This part does the migration from Courier IMAP and POP3, preserving IMAP UIDs and POP3 UIDLs. ##
## It reads Courier's 'courierimapuiddb' and 'courierpop3dsizelist' files and produces 'dovecot-uidlist' file from it. ##
# We warn user it will take some time to migrate all indexes
echo " "
echo -e "\033[31m"
echo "################################################"
echo "# /!\ CONVERTING COURIER INDEXES TO DOVECOT /!\ "
echo "# /!\ THIS MAY TAKE A WHILE ! /!\ "
@ -54,7 +54,8 @@ echo "# "
echo "# Add \"--overwrite\" option if you want to "
echo "# overwrite ALL 'dovecot-uidlist' indexes "
echo "################################################"
echo " "
echo -e "\033[0m"
# Stoping dovecot service
invoke-rc.d dovecot stop || true

View File

@ -12,7 +12,7 @@ if [ ! -r "$CONFIG_FILE" ]; then
fi
if [ `id -u` -ne 0 ]; then
echo "fixperms.sh must be launched as root"
echo "3.0.3~b.sh must be launched as root"
exit 1
fi