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

View File

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

View File

@ -17,11 +17,6 @@ case "$1" in
;; ;;
upgrade) 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 if dpkg --compare-versions "$2" lt "0.9.4"; then
echo "Upgrading bind configuration" echo "Upgrading bind configuration"

View File

@ -12,7 +12,7 @@ if [ ! -r "$CONFIG_FILE" ]; then
fi fi
if [ `id -u` -ne 0 ]; then 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 exit 1
fi 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. ## ## 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. ## ## 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 # We warn user it will take some time to migrate all indexes
echo " " echo -e "\033[31m"
echo "################################################" echo "################################################"
echo "# /!\ CONVERTING COURIER INDEXES TO DOVECOT /!\ " echo "# /!\ CONVERTING COURIER INDEXES TO DOVECOT /!\ "
echo "# /!\ THIS MAY TAKE A WHILE ! /!\ " echo "# /!\ THIS MAY TAKE A WHILE ! /!\ "
@ -54,7 +54,8 @@ echo "# "
echo "# Add \"--overwrite\" option if you want to " echo "# Add \"--overwrite\" option if you want to "
echo "# overwrite ALL 'dovecot-uidlist' indexes " echo "# overwrite ALL 'dovecot-uidlist' indexes "
echo "################################################" echo "################################################"
echo " " echo -e "\033[0m"
# Stoping dovecot service # Stoping dovecot service
invoke-rc.d dovecot stop || true invoke-rc.d dovecot stop || true

View File

@ -12,7 +12,7 @@ if [ ! -r "$CONFIG_FILE" ]; then
fi fi
if [ `id -u` -ne 0 ]; then 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 exit 1
fi fi