Fix permissions on startup. Requires re-install of systemd units.
This commit is contained in:
parent
9f541cd9b5
commit
b41e5b2315
|
@ -65,6 +65,9 @@ case "$ACTION" in
|
|||
uninstall)
|
||||
exec ./lib/remove-bridgehead-units.sh $PROJECT
|
||||
;;
|
||||
fixPermissions)
|
||||
chown -R bridgehead /etc/bridgehead .
|
||||
;;
|
||||
*)
|
||||
printUsage
|
||||
exit 1
|
||||
|
|
|
@ -4,6 +4,7 @@ Description=Bridgehead (%i) Update Service
|
|||
[Service]
|
||||
Type=oneshot
|
||||
User=bridgehead
|
||||
ExecStartPre=-/srv/docker/bridgehead/bridgehead fixPermissions %i
|
||||
ExecStart=/srv/docker/bridgehead/bridgehead update %i
|
||||
|
||||
[Install]
|
||||
|
|
|
@ -6,6 +6,7 @@ Requires=docker.service
|
|||
User=bridgehead
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
ExecStartPre=-/srv/docker/bridgehead/bridgehead fixPermissions %i
|
||||
ExecStart=/srv/docker/bridgehead/bridgehead start %i
|
||||
ExecStop=/srv/docker/bridgehead/bridgehead stop %i
|
||||
|
||||
|
|
Loading…
Reference in New Issue