X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=squirrelmail-cn.git;a=blobdiff_plain;f=debian%2Fconfig;fp=debian%2Fconfig;h=ddea8a605d3a89f15f72b275e929aa17e2237df1;hp=866772f51a1251090f84c49ee3a01e4aace996e0;hb=10e1b23107ae734fcaa2efa79eac426ddc9e9bd7;hpb=5c9cb61bd99bcc06acd6d775ce2ab28175f9fe09 diff --git a/debian/config b/debian/config index 866772f..ddea8a6 100644 --- a/debian/config +++ b/debian/config @@ -6,12 +6,12 @@ set -e . /usr/share/debconf/confmodule if [ "$1" != reconfigure ]; then - for item in leftwidth themecss; do - db_fget squirrelmail-cn/${item} seen - if [ "$RET" = "true" ]; then - exit 0 - fi - done + for item in leftwidth themecss; do + db_fget squirrelmail-cn/${item} seen + if [ "$RET" = "true" ]; then + exit 0 + fi + done fi SMDIR="/etc/squirrelmail" @@ -22,37 +22,35 @@ SMCONF="$SMDIR/config.php" # change_default=1 if [ -f "$SMCONF" ]; then - if egrep -q "^[[:space:]]*\\\$default_left_size[[:space:]]*=[[:space:]]*'220'" "$SMCONF"; then - change_default=0 - fi + if egrep -q "^[[:space:]]*\\\$default_left_size[[:space:]]*=[[:space:]]*'220'" "$SMCONF"; then + change_default=0 + fi fi if [ $change_default -eq 1 ]; then - - # Ask user for changing $default_left_size to '220'. - db_input critical squirrelmail-cn/leftwidth || true - db_go || true + # Ask user for changing $default_left_size to '220'. + db_input critical squirrelmail-cn/leftwidth || true + db_go || true else - db_set squirrelmail-cn/leftwidth false || true - db_fset squirrelmail-cn/leftwidth seen true - change_default=1 + db_set squirrelmail-cn/leftwidth false || true + db_fset squirrelmail-cn/leftwidth seen true + change_default=1 fi # Check $theme_css in SM's config.php # change_default=1 if [ -f "$SMCONF" ]; then - if egrep -q "^[[:space:]]*\\\$theme_css[[:space:]]*=[[:space:]]*SM_PATH[[:space:]]*\.[[:space:]]*'themes\/css\/squirrelmail-cn\.css'" "$SMCONF"; then - change_default=0 - fi + if egrep -q "^[[:space:]]*\\\$theme_css[[:space:]]*=[[:space:]]*SM_PATH[[:space:]]*\.[[:space:]]*'themes\/css\/squirrelmail-cn\.css'" "$SMCONF"; then + change_default=0 + fi fi if [ $change_default -eq 1 ]; then - - # Ask user for changing $theme_css to 'squirrelmail-cn.css'. - db_input critical squirrelmail-cn/themecss || true - db_go || true + # Ask user for changing $theme_css to 'squirrelmail-cn.css'. + db_input critical squirrelmail-cn/themecss || true + db_go || true else - db_set squirrelmail-cn/themecss false || true - db_fset squirrelmail-cn/themecss seen true + db_set squirrelmail-cn/themecss false || true + db_fset squirrelmail-cn/themecss seen true fi exit 0