11
11
CACHE_LIFETIME=`config-get cache-lifetime`
14
13
juju-log "Updating configuration file"
15
sed -i -e "s/^\\\$THINKUP_CFG\['app_title'\](\s*)\=.*/\$THINKUP_CFG['app_title']$1= '${TITLE}';/" -e "s/^\\\$THINKUP_CFG\['timezone'\](\s*)\=.*/\$THINKUP_CFG['timezone']$1= '${TIMEZONE}';/" -e "s/^\\\$THINKUP_CFG\['cache_pages'\](\s*)\=.*/\$THINKUP_CFG['cache_pages']$1= ${CACHE};/"-e "s/^\\\$THINKUP_CFG\['cache_lifetime'\](\s*)\=.*/\$THINKUP_CFG['cache_lifetime']$1= '${CACHE_LIFETIME}';/" /var/www/config.inc.php