mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-15 06:04:40 +00:00
rename3
This commit is contained in:
parent
c3b5332477
commit
c7560e1630
28 changed files with 95 additions and 95 deletions
|
|
@ -4,7 +4,7 @@ set -euo pipefail
|
|||
|
||||
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
compose_file="$repo_root/docker/compose.dev.yml"
|
||||
app_source_dir="$repo_root/apps/ainas-controlplane"
|
||||
app_source_dir="$repo_root/apps/betternascontrolplane"
|
||||
|
||||
nextcloud_occ() {
|
||||
docker compose -f "$compose_file" exec -T --user www-data --workdir /var/www/html nextcloud php occ "$@"
|
||||
|
|
@ -17,13 +17,13 @@ nextcloud_is_installed() {
|
|||
docker compose -f "$compose_file" up -d --build
|
||||
|
||||
docker compose -f "$compose_file" exec -T --user root nextcloud sh -lc '
|
||||
mkdir -p /var/www/html/custom_apps/ainascontrolplane
|
||||
mkdir -p /var/www/html/custom_apps/betternascontrolplane
|
||||
chown -R www-data:www-data /var/www/html/custom_apps
|
||||
'
|
||||
|
||||
docker compose -f "$compose_file" cp "$app_source_dir/." nextcloud:/var/www/html/custom_apps/ainascontrolplane
|
||||
docker compose -f "$compose_file" cp "$app_source_dir/." nextcloud:/var/www/html/custom_apps/betternascontrolplane
|
||||
docker compose -f "$compose_file" exec -T --user root nextcloud sh -lc '
|
||||
chown -R www-data:www-data /var/www/html/custom_apps/ainascontrolplane
|
||||
chown -R www-data:www-data /var/www/html/custom_apps/betternascontrolplane
|
||||
'
|
||||
|
||||
echo "Waiting for Nextcloud command interface..."
|
||||
|
|
@ -60,7 +60,7 @@ if ! nextcloud_is_installed; then
|
|||
fi
|
||||
fi
|
||||
|
||||
nextcloud_occ app:enable --force ainascontrolplane >/dev/null
|
||||
nextcloud_occ app:enable --force betternascontrolplane >/dev/null
|
||||
|
||||
echo "Nextcloud: http://localhost:8080"
|
||||
echo "betterNAS control plane: http://localhost:3001"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue