nextcloud: Ignoriere Verzeichnise beim Update
This commit is contained in:
parent
ab4612c836
commit
69ecb2e1fd
1 changed files with 29 additions and 32 deletions
|
@ -6,8 +6,7 @@ NEXTCLOUD_ROOT="{{ nextcloud_root }}"
|
|||
UPDATER="updater/updater.phar"
|
||||
|
||||
update_db() {
|
||||
for j in `find "$NEXTCLOUD_ROOT" -maxdepth 1 -mindepth 1 -type d`
|
||||
do
|
||||
for j in $(find "$NEXTCLOUD_ROOT" -maxdepth 1 -mindepth 1 -type d -not -path "$NEXTCLOUD_ROOT/mail2deck"); do
|
||||
USER=$(stat -c %U "$j")
|
||||
echo "Aktualisiere $j..."
|
||||
sudo -u "$USER" php "$j"/occ db:convert-filecache-bigint --no-interaction
|
||||
|
@ -16,8 +15,7 @@ update_db() {
|
|||
}
|
||||
|
||||
update_apps() {
|
||||
for k in `find "$NEXTCLOUD_ROOT" -maxdepth 1 -mindepth 1 -type d`
|
||||
do
|
||||
for k in $(find "$NEXTCLOUD_ROOT" -maxdepth 1 -mindepth 1 -type d -not -path "$NEXTCLOUD_ROOT/mail2deck"); do
|
||||
USER=$(stat -c %U "$k")
|
||||
echo "Aktualisiere $k..."
|
||||
sudo -u "$USER" php "$k"/occ app:update --all
|
||||
|
@ -26,8 +24,7 @@ update_apps() {
|
|||
|
||||
case "$1" in
|
||||
all)
|
||||
for i in `find "$NEXTCLOUD_ROOT" -maxdepth 1 -mindepth 1 -type d`
|
||||
do
|
||||
for i in $(find "$NEXTCLOUD_ROOT" -maxdepth 1 -mindepth 1 -type d -not -path "$NEXTCLOUD_ROOT/mail2deck"); do
|
||||
USER=$(stat -c %U "$i")
|
||||
echo "Aktualisiere $i..."
|
||||
sudo -u "$USER" php "$i"/"$UPDATER" --no-interaction
|
||||
|
|
Loading…
Reference in a new issue