mirror of
https://github.com/linuxserver/docker-webgrabplus.git
synced 2026-02-19 19:52:00 +08:00
commit
a742267bc9
6
root/app/update.sh
Normal file
6
root/app/update.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
cd /app/wg++/bin.net || exit 1
|
||||
|
||||
/app/dotnet/dotnet "WebGrab+Plus.dll" "/config"
|
||||
@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd /app/wg++/bin.net || exit
|
||||
|
||||
/app/dotnet/dotnet "WebGrab+Plus.dll" "/config"
|
||||
|
||||
exit 0
|
||||
@ -1 +0,0 @@
|
||||
2 3 * * * /bin/bash /defaults/update.sh
|
||||
2
root/etc/crontabs/abc
Normal file
2
root/etc/crontabs/abc
Normal file
@ -0,0 +1,2 @@
|
||||
# min hour day month weekday command
|
||||
2 3 * * * /app/update.sh 2>&1
|
||||
@ -1,6 +1,11 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
mkdir -p \
|
||||
/app/wg++/bin.net/WebGrab+Plus \
|
||||
/config/License
|
||||
ln -sf /config/License /app/wg++/bin.net/WebGrab+Plus
|
||||
|
||||
# copy config
|
||||
if [[ ! -e /config/WebGrab++.config.xml ]]; then
|
||||
cp /defaults/WebGrab++.config.xml /config/
|
||||
@ -10,20 +15,6 @@ if [[ ! -e /config/siteini.pack ]]; then
|
||||
cp -R /defaults/ini/siteini.pack /config/
|
||||
fi
|
||||
|
||||
# warn user about changing name for crontab file
|
||||
echo "******** Please use the file wg3-cron to adjust the scheduled time for running WebGrab++. wg-cron can now be deleted. ********"
|
||||
|
||||
# add cron file for running webgrab+plus
|
||||
if [[ ! -e /config/wg3-cron ]]; then
|
||||
cp /defaults/wg3-cron /config/wg3-cron
|
||||
fi
|
||||
|
||||
crontab -u abc /config/wg3-cron
|
||||
|
||||
mkdir -p /app/wg++/bin.net/WebGrab+Plus
|
||||
mkdir -p /config/License
|
||||
ln -sf /config/License /app/wg++/bin.net/WebGrab+Plus
|
||||
|
||||
# permissions
|
||||
lsiown -R abc:abc \
|
||||
/app \
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
exec /usr/sbin/crond -f -L 1
|
||||
@ -1 +0,0 @@
|
||||
longrun
|
||||
Loading…
x
Reference in New Issue
Block a user