Make nextcloud data directory writable
This commit is contained in:
parent
7c40b53833
commit
3cd29d8b33
|
@ -171,6 +171,9 @@ function upgrade_nextcloud {
|
|||
# update to the next commit
|
||||
function_check set_repo_commit
|
||||
set_repo_commit /var/www/$NEXTCLOUD_DOMAIN_NAME/htdocs "nextcloud commit" "$NEXTCLOUD_COMMIT" $NEXTCLOUD_REPO
|
||||
|
||||
chown -R www-data:www-data /var/www/$NEXTCLOUD_DOMAIN_NAME/htdocs/config
|
||||
chown -R www-data:www-data /var/www/$NEXTCLOUD_DOMAIN_NAME/htdocs/data
|
||||
}
|
||||
|
||||
|
||||
|
@ -484,6 +487,8 @@ function install_nextcloud_main {
|
|||
${PROJECT_NAME}-pass -u $MY_USERNAME -a nextcloud -p "$NEXTCLOUD_ADMIN_PASSWORD"
|
||||
|
||||
cd /var/www/${NEXTCLOUD_DOMAIN_NAME}/htdocs
|
||||
chown -R www-data:www-data config
|
||||
chown -R www-data:www-data data
|
||||
./occ maintenance:install --database-name nextcloud --admin-user ${MY_USERNAME} --admin-pass "${NEXTCLOUD_ADMIN_PASSWORD}" --database mysql --database-user root --database-pass "${MARIADB_PASSWORD}"
|
||||
./occ check
|
||||
./occ status
|
||||
|
|
Loading…
Reference in New Issue