Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ncp/CONFIG/nc-init.sh')
-rw-r--r--bin/ncp/CONFIG/nc-init.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ncp/CONFIG/nc-init.sh b/bin/ncp/CONFIG/nc-init.sh
index fe285d57..243f59d9 100644
--- a/bin/ncp/CONFIG/nc-init.sh
+++ b/bin/ncp/CONFIG/nc-init.sh
@@ -101,7 +101,6 @@ EOF
sed -i "s|^;\?upload_tmp_dir =.*$|upload_tmp_dir = $UPLOADTMPDIR|" /etc/php/${PHPVER}/fpm/php.ini
sed -i "s|^;\?sys_temp_dir =.*$|sys_temp_dir = $UPLOADTMPDIR|" /etc/php/${PHPVER}/fpm/php.ini
-
# 4 Byte UTF8 support
sudo -u www-data php occ config:system:set mysql.utf8mb4 --type boolean --value="true"
@@ -137,6 +136,11 @@ replace into oc_appconfig values ( 'theming', 'logoMime' , "image/svg+xml"
replace into oc_appconfig values ( 'theming', 'backgroundMime', "image/png" );
EOF
+ # NCP app
+ cp -r /var/www/ncp-app /var/www/nextcloud/apps/nextcloudpi
+ chown -R www-data: /var/www/nextcloud/apps/nextcloudpi
+ sudo -u www-data php /var/www/nextcloud/occ app:enable nextcloudpi
+
# enable some apps by default
sudo -u www-data php /var/www/nextcloud/occ app:install calendar
sudo -u www-data php /var/www/nextcloud/occ app:install contacts