From d250aa9d8a4e9141945e83d03e77cef058d22f31 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Wed, 19 Jul 2023 16:37:06 -0400 Subject: [PATCH] added misc segfault.net server scripts --- src/.local/bin/sf-regen-user.sh | 9 +++++++++ src/.local/bin/sf-user.sh | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 src/.local/bin/sf-regen-user.sh create mode 100644 src/.local/bin/sf-user.sh 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"