move files to right place

This commit is contained in:
Jakobus Schürz 2022-11-26 10:41:29 +01:00
parent b93e45d97b
commit d76c5eeff3
6 changed files with 37 additions and 31 deletions

View file

@ -0,0 +1,21 @@
[Unit]
Description=Create and delete $HOME for Guest-Session USER: %i
Before=user@%i.service
#BindsTo=user@%i.service guest-session@%i.service
Conflicts=shutdown.target
BindsTo=user@%i.service
#RefuseManualStart=true
[Service]
Type=oneshot
RemainAfterExit=true
# if installed to /usr/lib/systemd, then activate this
#ExecStart=-/usr/lib/systemd/scripts/guest-session-homedir.sh create %i
#ExecStop=-/usr/lib/systemd/scripts/guest-session-homedir.sh delete %i
# if installed to /etc/systemd/syste/, then activate this
ExecStart=-/etc/systemd/scripts/guest-session-homedir.sh create %i
ExecStop= -/etc/systemd/scripts/guest-session-homedir.sh delete %i
[Install]
WantedBy=user@%i.service

View file

@ -0,0 +1,16 @@
[Unit]
Description=Create guest-user (%i) and activate volatile $HOME for it
[Service]
RemainAfterExit=true
# if installed to /usr/lib/systemd, then activate this
#ExecStart=/usr/lib/systemd/scripts/guest-session.sh create "%I"
#ExecStop=/usr/lib/systemd/scripts/guest-session.sh delete "%I"
# if installed to /etc/systemd/syste/, then activate this
ExecStart=/etc/systemd/scripts/guest-session.sh create "%I"
ExecStop= /etc/systemd/scripts/guest-session.sh delete "%I"
[Install]
WantedBy=multi-user.target

View file

@ -1,21 +0,0 @@
[Unit]
Description=Create and delete $HOME for Guest-Session USER: %i
Before=user@%i.service
#BindsTo=user@%i.service guest-session@%i.service
Conflicts=shutdown.target
BindsTo=user@%i.service
#RefuseManualStart=true
[Service]
Type=oneshot
RemainAfterExit=true
#ExecStartPre=/bin/sh -c '/bin/systemctl set-environment SKEL=/etc/skel$(/usr/bin/id -un %i)'
#ExecStartPre=/bin/sh -c '/bin/systemctl set-environment SK=$(test -e $SKEL && echo -n $SKEL || echo -n "/etc/skel")'
#ExecStartPre=/bin/sh -c '/bin/systemctl set-environment UHOME=$(getent passwd %i | cut -d: -f6)'
#ExecStartPre=/etc/systemd/system/scripts/guest-session-homedir.sh create "$SKEL" "$UHOME"
ExecStart=/usr/lib/systemd/scripts/guest-session-homedir.sh create %i
#ExecStart=/bin/chown -R %i:%i "$UHOME"
ExecStop=-/usr/lib/systemd/scripts/guest-session-homedir.sh delete %i
[Install]
WantedBy=user@%i.service

View file

@ -1,10 +0,0 @@
[Unit]
Description=Create guest-user (%i) and activate volatile $HOME for it
[Service]
RemainAfterExit=true
ExecStart=/usr/lib/systemd/scripts/guest-session.sh create "%I"
ExecStop=/usr/lib/systemd/scripts/guest-session.sh delete "%I"
[Install]
WantedBy=multi-user.target