diff --git a/apps/onedev/11.0.3/data.yml b/apps/onedev/11.0.4/data.yml similarity index 100% rename from apps/onedev/11.0.3/data.yml rename to apps/onedev/11.0.4/data.yml diff --git a/apps/onedev/11.0.3/docker-compose.yml b/apps/onedev/11.0.4/docker-compose.yml similarity index 96% rename from apps/onedev/11.0.3/docker-compose.yml rename to apps/onedev/11.0.4/docker-compose.yml index b230ce333..6d3bfefa3 100644 --- a/apps/onedev/11.0.3/docker-compose.yml +++ b/apps/onedev/11.0.4/docker-compose.yml @@ -6,7 +6,7 @@ networks: services: onedev: - image: 1dev/server:11.0.3 + image: 1dev/server:11.0.4 container_name: ${CONTAINER_NAME} labels: createdBy: "Apps" diff --git a/apps/onedev/11.0.3/scripts/init.sh b/apps/onedev/11.0.4/scripts/init.sh similarity index 100% rename from apps/onedev/11.0.3/scripts/init.sh rename to apps/onedev/11.0.4/scripts/init.sh diff --git a/apps/onedev/11.0.3/scripts/uninstall.sh b/apps/onedev/11.0.4/scripts/uninstall.sh similarity index 100% rename from apps/onedev/11.0.3/scripts/uninstall.sh rename to apps/onedev/11.0.4/scripts/uninstall.sh diff --git a/apps/onedev/11.0.3/scripts/upgrade.sh b/apps/onedev/11.0.4/scripts/upgrade.sh similarity index 100% rename from apps/onedev/11.0.3/scripts/upgrade.sh rename to apps/onedev/11.0.4/scripts/upgrade.sh diff --git a/script/app_install.sh b/script/app_install.sh index 25db06a53..2aabda39f 100644 --- a/script/app_install.sh +++ b/script/app_install.sh @@ -51,6 +51,10 @@ repos=( 'https://gitea.com/QYG2297248353/appstore-1panel' ) +if [ -d "${BASE_DIR:?}/1panel/resource/apps/local/appstore-localApps" ]; then + rm -rf "${BASE_DIR:?}/1panel/resource/apps/local/appstore-localApps" +fi + for repo in "${repos[@]}"; do echo "$(date): Step 1 - Cloning repository: $repo" git clone --depth 1 -b released "$repo" "${BASE_DIR:?}/1panel/resource/apps/local/appstore-localApps" && break @@ -74,6 +78,10 @@ if [ ! -w "$LOCAL_DIR" ]; then exit 1 fi +if [ ! -d "$DEST_ENVS_DIR" ]; then + mkdir -p "$DEST_ENVS_DIR" +fi + if [ ! -w "$DEST_ENVS_DIR" ]; then echo "Error: No write permission to $DEST_ENVS_DIR." echo "Please run as a superuser."