mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Normally, these scripts are used to update official providers in the aurweb database along with archives that can be retrieved. Run both of these scripts in a 5 minute cron job, to both reflect the live instance database and production load. Signed-off-by: Kevin Morris <kevr@0cost.org>
16 lines
357 B
Bash
Executable file
16 lines
357 B
Bash
Executable file
#!/bin/bash
|
|
set -eou pipefail
|
|
|
|
# Prepare AUR_CONFIG.
|
|
cp -vf conf/config.dev conf/config
|
|
sed -i "s;YOUR_AUR_ROOT;$(pwd);g" conf/config
|
|
|
|
# Create directories we need.
|
|
mkdir -p /aurweb/aurblup
|
|
|
|
# Install the cron configuration.
|
|
cp /docker/config/aurweb-cron /etc/cron.d/aurweb-cron
|
|
chmod 0644 /etc/cron.d/aurweb-cron
|
|
crontab /etc/cron.d/aurweb-cron
|
|
|
|
exec "$@"
|