install laminard in usr/sbin not usr/bin

complies with FHS
pull/113/head
Oliver Giles 4 years ago
parent e6f338ceb2
commit 304ef797b8

@ -118,7 +118,8 @@ endif()
set(SYSTEMD_UNITDIR lib/systemd/system CACHE PATH "Path to systemd unit files")
set(BASH_COMPLETIONS_DIR usr/share/bash-completion/completions CACHE PATH "Path to bash completions directory")
set(ZSH_COMPLETIONS_DIR usr/share/zsh/site-functions CACHE PATH "Path to zsh completions directory")
install(TARGETS laminard laminarc RUNTIME DESTINATION usr/bin)
install(TARGETS laminard RUNTIME DESTINATION usr/sbin)
install(TARGETS laminarc RUNTIME DESTINATION usr/bin)
install(FILES etc/laminar.service DESTINATION ${SYSTEMD_UNITDIR})
install(FILES etc/laminar.conf DESTINATION etc)
install(FILES etc/laminarc-completion.bash DESTINATION ${BASH_COMPLETIONS_DIR} RENAME laminarc)

@ -5,7 +5,7 @@ After=network.target
[Service]
User=laminar
EnvironmentFile=-/etc/laminar.conf
ExecStart=/usr/bin/laminard
ExecStart=/usr/sbin/laminard
[Install]
WantedBy=multi-user.target

Loading…
Cancel
Save