diff --git a/src/.local/bin/sf-regen-user.sh b/src/.local/bin/sf-regen-user.sh new file mode 100644 index 0000000..b60f50a --- /dev/null +++ b/src/.local/bin/sf-regen-user.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# regen /home/user on segfault.net free servers + +rm -rf /sec/home/user +mkdir /home/user +chown user:user /home/user +chmod 700 /home/user +runuser user -s /bin/sh -c "git clone https://github.com/dogeystamp/dots.git ~/dots" +runuser user -s /bin/sh -c "~/dots/dotinstall.sh" diff --git a/src/.local/bin/sf-user.sh b/src/.local/bin/sf-user.sh new file mode 100644 index 0000000..e0e74c3 --- /dev/null +++ b/src/.local/bin/sf-user.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# start shell as user on segfault.net servers + +su -l user -s "/bin/bash"