diff options
-rwxr-xr-x | install.sh | 4 | ||||
-rw-r--r-- | lib.sh | 1 | ||||
-rwxr-xr-x | uninstall.sh | 4 |
3 files changed, 9 insertions, 0 deletions
@@ -2,6 +2,10 @@ source /srv/www/lib.sh +for DIR in ${DIRS}; do + mkdir -p "${DIR}" +done + for FILE in ${FILES}; do ln -sf "/srv/www/sys/${FILE}" "/${FILE}" done @@ -1,3 +1,4 @@ #! /bin/sh +DIRS="etc/caddy etc/searxng usr/local/searxng" FILES="etc/cgitrc etc/caddy/Caddyfile etc/searxng/settings.yml usr/local/searxng/searxng.sh usr/local/searxng/searxng_debug.sh" diff --git a/uninstall.sh b/uninstall.sh index 9ff5f45..82fa95d 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -5,3 +5,7 @@ source /srv/www/lib.sh for FILE in ${FILES}; do rm "/${FILE}" done + +for DIR in ${DIRS}; do + rm -r "${DIR}" +done |