[dd-ctl] [nc] forms plugin branch + occ upgrade

When installing / upgrading plugins it is often the case that occ
upgrade needs to run.
mejoras_instalacion
Evilham 2022-08-08 11:40:57 +02:00
parent 151ddd5515
commit 80ff9cce22
No known key found for this signature in database
GPG Key ID: AE3EE30D970886BF
1 changed files with 8 additions and 1 deletions

9
dd-ctl
View File

@ -315,7 +315,7 @@ setup_nextcloud(){
# Custom forms # Custom forms
docker exec dd-apps-nextcloud-app apk add git npm composer docker exec dd-apps-nextcloud-app apk add git npm composer
docker exec -u www-data dd-apps-nextcloud-app rm -rf /var/www/html/custom_apps/forms docker exec -u www-data dd-apps-nextcloud-app rm -rf /var/www/html/custom_apps/forms
docker exec -u www-data dd-apps-nextcloud-app git clone https://github.com/juanan3ip/form -b dependabot/npm_and_yarn/babel/eslint-parser-7.17.0 /var/www/html/custom_apps/forms docker exec -u www-data dd-apps-nextcloud-app git clone https://github.com/juanan3ip/form -b dev /var/www/html/custom_apps/forms
docker exec -u www-data dd-apps-nextcloud-app npm --prefix /var/www/html/custom_apps/forms install docker exec -u www-data dd-apps-nextcloud-app npm --prefix /var/www/html/custom_apps/forms install
docker exec -u www-data dd-apps-nextcloud-app composer -d/var/www/html/custom_apps/forms install --no-dev -o docker exec -u www-data dd-apps-nextcloud-app composer -d/var/www/html/custom_apps/forms install --no-dev -o
docker exec -u www-data dd-apps-nextcloud-app php occ app:enable forms docker exec -u www-data dd-apps-nextcloud-app php occ app:enable forms
@ -419,6 +419,12 @@ setup_nextcloud(){
fi fi
configure_nextcloud_logo configure_nextcloud_logo
nextcloud_upgrade
}
nextcloud_upgrade(){
docker-compose exec -u www-data dd-apps-nextcloud-app ./occ upgrade
} }
nextcloud_scan(){ nextcloud_scan(){
@ -623,6 +629,7 @@ upgrade_plugins_moodle(){
upgrade_plugins_nextcloud(){ upgrade_plugins_nextcloud(){
wget https://code.jquery.com/jquery-3.2.1.slim.min.js -O $SRC_FOLDER/nextcloud/themes/dd/core/js/jquery_slim_3.2.1.js wget https://code.jquery.com/jquery-3.2.1.slim.min.js -O $SRC_FOLDER/nextcloud/themes/dd/core/js/jquery_slim_3.2.1.js
cp -R dd-apps/docker/nextcloud/src/* $SRC_FOLDER/nextcloud/ cp -R dd-apps/docker/nextcloud/src/* $SRC_FOLDER/nextcloud/
nextcloud_upgrade
} }
upgrade_plugins_wp(){ upgrade_plugins_wp(){