Skip to content

Commit

Permalink
letsencrypt: only call update-rc.d in docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Feb 13, 2018
1 parent df8703c commit 30a8bdd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-armhf/debian-ncp/run-parts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test -f $FILE || {
}
[[ "$2" == "enable" ]] && {
ln -s $FILE /etc/services-enabled.d/$( basename $FILE )
ln -sf $FILE /etc/services-enabled.d/$( basename $FILE )
echo "enabled $1"
exit 0
}
Expand Down
2 changes: 1 addition & 1 deletion docker/debian-ncp/run-parts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test -f $FILE || {
}
[[ "$2" == "enable" ]] && {
ln -s $FILE /etc/services-enabled.d/$( basename $FILE )
ln -sf $FILE /etc/services-enabled.d/$( basename $FILE )
echo "enabled $1"
exit 0
}
Expand Down
2 changes: 1 addition & 1 deletion etc/nextcloudpi-config.d/letsencrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ EOF
rm -rf $NCDIR/.well-known

# update configuration
/usr/local/sbin/update-rc.d letsencrypt enable
[[ "$DOCKERBUILD" == 1 ]] && update-rc.d letsencrypt enable

return 0
}
Expand Down

0 comments on commit 30a8bdd

Please sign in to comment.