remove user sv
This commit is contained in:
parent
8249598191
commit
2bd07f69e5
2 changed files with 0 additions and 19 deletions
10
bootstrap.sh
10
bootstrap.sh
|
@ -194,16 +194,6 @@ select_keymap() {
|
||||||
}
|
}
|
||||||
|
|
||||||
enable_services() {
|
enable_services() {
|
||||||
tput sc
|
|
||||||
info "Installing user service service..."
|
|
||||||
target="/etc/sv/runsvdir-${username}"
|
|
||||||
mkdir -p "$target"
|
|
||||||
sed "s/<U>/$username/" "${SCRIPT_DIR}/runsvdir-user" >"$target/run"
|
|
||||||
[ ! -L "/var/service/$(basename "$target")" ] &&
|
|
||||||
ln -s "$target" "/var/service/"
|
|
||||||
chmod 755 "$target"
|
|
||||||
tput rc
|
|
||||||
tput el
|
|
||||||
#shellcheck disable=SC2016
|
#shellcheck disable=SC2016
|
||||||
_loop_wrapper "$1" \
|
_loop_wrapper "$1" \
|
||||||
'Enabling ${x} service' \
|
'Enabling ${x} service' \
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
export USER="<U>"
|
|
||||||
export HOME="/home/<U>"
|
|
||||||
|
|
||||||
groups="$(id -Gn "$USER" | tr ' ' ':')"
|
|
||||||
svdir="$HOME/.local/sv/"
|
|
||||||
|
|
||||||
exec chpst -u "$USER:$groups" runsvdir "$svdir"
|
|
Reference in a new issue