rename user service
This commit is contained in:
parent
2125b11cd2
commit
9704d2be5d
|
@ -194,7 +194,7 @@ enable_services() {
|
|||
info "Installing user service service..."
|
||||
target="/etc/sv/runsvdir-${username}"
|
||||
mkdir -p "$(dirname "$target")"
|
||||
sed "s/<U>/$username/" "${SCRIPT_DIR}/userservice.sh" >"$target/run"
|
||||
sed "s/<U>/$username/" "${SCRIPT_DIR}/runsvdir-user" >"$target/run"
|
||||
[ ! -L "/var/service/$(basename "$target")" ] &&
|
||||
ln -s "$target" "/var/service/"
|
||||
chmod 755 "$target"
|
||||
|
|
Reference in New Issue