Skip to content

Commit 1aecb02

Browse files
authored
enable app if already installed
1 parent 802ca0d commit 1aecb02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,10 @@ or when a new version of the app is released with the following command:
695695
fi
696696
fi
697697
else
698-
print_text_in_color "$IGreen" "It seems like $1 is installed already"
698+
print_text_in_color "$ICyan" "It seems like $1 is installed already, trying to enable it..."
699+
# occ_command not possible here because it uses check_command and will exit if occ_command fails
700+
sudo -u www-data php ${NCPATH}/occ app:enable "$1"
701+
chown -R www-data:www-data "$NC_APPS_PATH"
699702
fi
700703
}
701704

0 commit comments

Comments
 (0)