mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 03:55:41 -04:00
Initial upload
This commit is contained in:
28
root/etc/s6-overlay/s6-rc.d/init-samples/run
Normal file
28
root/etc/s6-overlay/s6-rc.d/init-samples/run
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/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/ \;
|
||||
Reference in New Issue
Block a user