mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2025-03-09 23:20:36 +08:00
Merge remote-tracking branch 'origin/custom' into custom
This commit is contained in:
commit
fab4c4a8a1
@ -6,7 +6,7 @@ networks:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
onedev:
|
onedev:
|
||||||
image: 1dev/server:11.0.3
|
image: 1dev/server:11.0.4
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
labels:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
@ -51,6 +51,10 @@ repos=(
|
|||||||
'https://gitea.com/QYG2297248353/appstore-1panel'
|
'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
|
for repo in "${repos[@]}"; do
|
||||||
echo "$(date): Step 1 - Cloning repository: $repo"
|
echo "$(date): Step 1 - Cloning repository: $repo"
|
||||||
git clone --depth 1 -b released "$repo" "${BASE_DIR:?}/1panel/resource/apps/local/appstore-localApps" && break
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -d "$DEST_ENVS_DIR" ]; then
|
||||||
|
mkdir -p "$DEST_ENVS_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -w "$DEST_ENVS_DIR" ]; then
|
if [ ! -w "$DEST_ENVS_DIR" ]; then
|
||||||
echo "Error: No write permission to $DEST_ENVS_DIR."
|
echo "Error: No write permission to $DEST_ENVS_DIR."
|
||||||
echo "Please run as a superuser."
|
echo "Please run as a superuser."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user