use sed correctly

This commit is contained in:
Sebastian Hugentobler 2018-01-30 12:44:10 +01:00
parent ef54e89760
commit 4d3740e921

View File

@ -102,4 +102,4 @@ s6-setuidgid nginx ./occ config:app:set --value "" user_ldap ldap_dynamic_group_
s6-setuidgid nginx ./occ config:app:set --value "" user_ldap ldap_default_ppolicy_dn
s6-setuidgid nginx ./occ config:app:set --value "1" user_ldap ldap_configuration_active
sed -i -e "s/'maintenance' => false,/'maintenance' => false,'apps_paths' => array (0 => array ('path' => '/usr/share/webapps/nextcloud/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ('path' => '/var/lib/nextcloud/apps', 'url' => '/apps-appstore', 'writable' => true,),),/g" /etc/nextcloud/config.php
sed -i -e "s|'maintenance' => false,|'maintenance' => false,'apps_paths' => array (0 => array ('path' => '/usr/share/webapps/nextcloud/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ('path' => '/var/lib/nextcloud/apps', 'url' => '/apps-appstore', 'writable' => true,),),|g" /etc/nextcloud/config.php