mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 05:15:42 -04:00
29 lines
666 B
Plaintext
29 lines
666 B
Plaintext
#!/usr/bin/with-contenv bash
|
|
# shellcheck shell=bash
|
|
|
|
# #
|
|
# @project thetvapp-docker
|
|
# @about Manages sample files such as nginx
|
|
# @file /root/etc/s6-overlay/s6-rc.d/init-samples/run
|
|
# @repo https://github.com/Aetherinox/thetvapp-docker
|
|
# #
|
|
|
|
# remove old samples
|
|
find /config/nginx/ \
|
|
-name "*.conf.sample" \
|
|
-type f \
|
|
-delete
|
|
|
|
# copy new samples
|
|
find /defaults/nginx/ \
|
|
-maxdepth 3 \
|
|
-name "*.conf.sample" \
|
|
-type f \
|
|
-exec cp "{}" /config/nginx/ \;
|
|
|
|
find /defaults/nginx/site-confs/ \
|
|
-maxdepth 1 \
|
|
-name "*.conf.sample" \
|
|
-type f \
|
|
-exec cp "{}" /config/nginx/site-confs/ \;
|