mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2025-02-02 20:57:58 +08:00
完善应用安装
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
a4cb512228
commit
9913dfc641
@ -18,7 +18,7 @@ services:
|
|||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||||
volumes:
|
volumes:
|
||||||
- ${TRANSMISSION_ROOT_PATH}/ui/themes:/ui/themes
|
- ${TRANSMISSION_ROOT_PATH}/themes:/themes
|
||||||
- ${TRANSMISSION_ROOT_PATH}/config:/config
|
- ${TRANSMISSION_ROOT_PATH}/config:/config
|
||||||
- ${TRANSMISSION_ROOT_PATH}/downloads:/downloads
|
- ${TRANSMISSION_ROOT_PATH}/downloads:/downloads
|
||||||
- ${TRANSMISSION_ROOT_PATH}/watch:/watch
|
- ${TRANSMISSION_ROOT_PATH}/watch:/watch
|
||||||
|
@ -11,14 +11,14 @@ if [ -f .env ]; then
|
|||||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||||
|
|
||||||
# setup-2 install theme
|
# setup-2 install theme
|
||||||
if [ ! -d "$TRANSMISSION_ROOT_PATH/ui/themes" ]; then
|
if [ ! -d "$TRANSMISSION_ROOT_PATH/themes" ]; then
|
||||||
mkdir -p "$TRANSMISSION_ROOT_PATH/ui/themes"
|
mkdir -p "$TRANSMISSION_ROOT_PATH/themes"
|
||||||
|
|
||||||
if command -v unzip >/dev/null 2>&1; then
|
if command -v unzip >/dev/null 2>&1; then
|
||||||
unzip -o themes/flood-for-transmission.zip -d "$TRANSMISSION_ROOT_PATH/ui/themes"
|
unzip -o themes/flood-for-transmission.zip -d "$TRANSMISSION_ROOT_PATH/themes"
|
||||||
UNZIP_SUCCESS=$?
|
UNZIP_SUCCESS=$?
|
||||||
elif command -v tar >/dev/null 2>&1; then
|
elif command -v tar >/dev/null 2>&1; then
|
||||||
tar -xf themes/flood-for-transmission.zip -C "$TRANSMISSION_ROOT_PATH/ui/themes"
|
tar -xf themes/flood-for-transmission.zip -C "$TRANSMISSION_ROOT_PATH/themes"
|
||||||
UNZIP_SUCCESS=$?
|
UNZIP_SUCCESS=$?
|
||||||
else
|
else
|
||||||
echo "Warning: Neither 'unzip' nor 'tar' is installed. Skipping theme extraction."
|
echo "Warning: Neither 'unzip' nor 'tar' is installed. Skipping theme extraction."
|
||||||
@ -40,6 +40,8 @@ if [ -f .env ]; then
|
|||||||
echo "Themes directory already exists. Skipping extraction."
|
echo "Themes directory already exists. Skipping extraction."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chown -R 1000:1000 "$TRANSMISSION_ROOT_PATH"
|
||||||
|
|
||||||
echo "Check Finish."
|
echo "Check Finish."
|
||||||
|
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user