Skip to content

Commit

Permalink
000ncp: Fix copying of new config files to persistent config
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
  • Loading branch information
theCalcaholic committed Jan 20, 2023
1 parent 99a608a commit 541c000
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/docker/nextcloudpi/000ncp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
source /usr/local/etc/library.sh

# INIT NCP CONFIG (first run)
cp -u /usr/local/ncp-config.d/*.cfg /data/ncp/
[[ "$1" == "start" ]] && {
echo "Install default configurations for new ncp apps"
rsync --ignore-existing -a --out-format="%n" /usr/local/etc/ncp-config.d/*.cfg /data/ncp/ | awk '{ print " > " $0 }'
}
persistent_cfg /usr/local/etc/ncp-config.d /data/ncp
persistent_cfg /etc/letsencrypt # persist SSL certificates
persistent_cfg /etc/shadow # persist ncp-web password
Expand Down

0 comments on commit 541c000

Please sign in to comment.