defaults in tar gz
This commit is contained in:
parent
bfba4f01ed
commit
e9b65fda0b
6 changed files with 40 additions and 4 deletions
2
.github/workflows/package-gui.yaml
vendored
2
.github/workflows/package-gui.yaml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: ytld-sub Docker Gui Build
|
||||
name: ytld-sub Docker GUI Build
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
|
|||
|
|
@ -77,7 +77,9 @@ RUN mkdir -p /config && \
|
|||
###############################################################################
|
||||
# CONTAINER CONFIGS
|
||||
|
||||
ENV EDITOR="nano" \
|
||||
|
||||
ENV YTDL_SUB_TYPE="gui" \
|
||||
EDITOR="nano" \
|
||||
HOME="/config" \
|
||||
DOCKER_MODS=linuxserver/mods:universal-cron \
|
||||
DEFAULT_WORKSPACE=/config/ytdl-sub-configs
|
||||
|
|
|
|||
BIN
docker/root/defaults/vs-code-data.tar.gz
Normal file
BIN
docker/root/defaults/vs-code-data.tar.gz
Normal file
Binary file not shown.
|
|
@ -1,5 +1,12 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# Exit if not gui
|
||||
if [ "$YTDL_SUB_TYPE" != "gui" ] ; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Checking ytdl-sub-gui defaults..."
|
||||
|
||||
# copy config
|
||||
[[ ! -e /config/ytdl-sub-configs/config.yaml ]] && \
|
||||
mkdir -p /config/ytdl-sub-configs && \
|
||||
|
|
@ -10,6 +17,13 @@
|
|||
[[ ! -d /config/ytdl-sub-configs/examples ]] && \
|
||||
mkdir -p /config/ytdl-sub-configs/examples && \
|
||||
cp /defaults/examples/* /config/ytdl-sub-configs/examples
|
||||
[[ ! -e /config/data/ytdl-sub-applied ]] && \
|
||||
echo "First run, placing default vs-code data directory..." && \
|
||||
cp /defaults/vs-code-data.tar.gz /config && \
|
||||
cd /config && \
|
||||
tar -xzf vs-code-data.tar.gz && \
|
||||
rm vs-code-data.tar.gz && \
|
||||
touch /config/data/ytdl-sub-applied
|
||||
|
||||
# permissions
|
||||
chown -R ${PUID:-abc}:${PGID:-abc} \
|
||||
20
docker/root/etc/cont-init.d/defaults-headless
Normal file
20
docker/root/etc/cont-init.d/defaults-headless
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# Exit if gui
|
||||
if [ "$YTDL_SUB_TYPE" == "gui" ] ; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Checking ytdl-sub defaults..."
|
||||
|
||||
# copy config
|
||||
[[ ! -e /config/config.yaml ]] && \
|
||||
cp /defaults/config.yaml /config/config.yaml
|
||||
[[ ! -e /config/subscriptions.yaml ]] && \
|
||||
cp /defaults/subscriptions.yaml /config/subscriptions.yaml
|
||||
[[ ! -d /config/examples ]] && \
|
||||
cp -R /defaults/examples /config/
|
||||
|
||||
# permissions
|
||||
chown -R ${PUID:-abc}:${PGID:-abc} \
|
||||
/config
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
__pypi_version__ = "2023.10.22"
|
||||
__local_version__ = "2023.10.22+8a02a40"
|
||||
__pypi_version__ = "2023.10.22.post3"
|
||||
__local_version__ = "2023.10.22+bfba4f0"
|
||||
|
|
|
|||
Loading…
Reference in a new issue