Commit f3fc1633 authored by w4t's avatar w4t

wtserver 0.47

parent 71a783b7
......@@ -301,11 +301,11 @@ EOF
CONFIG_FILE="$CLOUD_DIR/config/config.php"
if ! grep -q "'config_is_read_only'" "$CONFIG_FILE"; then
sed -i "/);/i \$CONFIG['config_is_read_only'] = false;" "$CONFIG_FILE"
sed -i "/);/i \ \ 'config_is_read_only' => false," "$CONFIG_FILE"
fi
if ! grep -q "'user_backends'" "$CONFIG_FILE"; then
sed -i "/);/i \$CONFIG['user_backends'] = array(\n array(\n 'class' => '\\\\OCA\\\\UserExternal\\\\IMAP',\n 'arguments' => array(\n '127.0.0.1', 143, null, null, false, false\n ),\n ),\n);" "$CONFIG_FILE"
sed -i "/);/i \ \ 'user_backends' => array(\n array(\n 'class' => '\\\\OCA\\\\UserExternal\\\\IMAP',\n 'arguments' => array(\n '127.0.0.1', 143, null, null, false, false\n ),\n ),\n )," "$CONFIG_FILE"
fi
chown www-data:www-data $CLOUD_DIR/config.php >> $PROGRAMS_INSTALL_LOG_FILES 2>&1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment