Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions root/app/update.sh
Original file line number Diff line number Diff line change
@@ -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"
7 changes: 0 additions & 7 deletions root/defaults/update.sh

This file was deleted.

1 change: 0 additions & 1 deletion root/defaults/wg3-cron

This file was deleted.

2 changes: 2 additions & 0 deletions root/etc/crontabs/abc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# min hour day month weekday command
2 3 * * * /app/update.sh 2>&1
19 changes: 5 additions & 14 deletions root/etc/s6-overlay/s6-rc.d/init-webgrabplus-config/run
Original file line number Diff line number Diff line change
@@ -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/
Expand All @@ -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 \
Expand Down
Empty file.
4 changes: 0 additions & 4 deletions root/etc/s6-overlay/s6-rc.d/svc-cron/run

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/svc-cron/type

This file was deleted.

Empty file.