summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-06-25 15:11:38 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-06-25 15:11:38 +0900
commitc722a19628c2fae666066be7abe6cfa064bf6d56 (patch)
tree260c64b76ee39f1e78b22ab4fd28d30e99c086b0
parent968a2fd821497480f06c1747a3f5077ca8477746 (diff)
Init
-rwxr-xr-xpublic/thesiah.sh10
-rwxr-xr-xstatic/thesiah.sh10
2 files changed, 10 insertions, 10 deletions
diff --git a/public/thesiah.sh b/public/thesiah.sh
index 482901c..ca8a377 100755
--- a/public/thesiah.sh
+++ b/public/thesiah.sh
@@ -166,19 +166,18 @@ gitmakeinstall() {
cd "$dir" || return 1
sudo -u "$name" git pull --force origin master
}
- cd "$repodir" || exit 1
# Check the repository name and act accordingly for suckless
case "$progname" in
"suckless")
for sub in "${progname}/"*; do
- cd "$sub" || continue
+ cd "$repodir/$sub" || continue
make >/dev/null 2>&1
make install >/dev/null 2>&1
cd ..
done
;;
*)
- cd "$progname" || exit 1
+ cd "$dir" || exit 1
make >/dev/null 2>&1
make install >/dev/null 2>&1
cd ..
@@ -512,8 +511,9 @@ sshsetup() {
whiptail --infobox "Setting up ssh..." 7 50
[ -x "$(command -v "ssh")" ] || installpkg openssh
pacman -Qq openssh-"$initsys" >/dev/null 2>&1 || installpkg openssh-"$initsys"
- sed -Ei "s/^#?(PasswordAuthentication).*/\1 no;s/^#?(UsePAM).*/\1 no" /etc/ssh/sshd_config >/dev/null 2>&1
- case "$initsys" in
+ sleep 1
+ sed -Ei "s/^#?(PasswordAuthentication).*/\1 no;s/^#?(UsePAM).*/\1 no" /etc/ssh/sshd_config
+ case "$initsys" in
"runit")
ln -sf /etc/runit/sv/sshd /run/runit/service/ >/dev/null 2>&1
sleep 1
diff --git a/static/thesiah.sh b/static/thesiah.sh
index 482901c..ca8a377 100755
--- a/static/thesiah.sh
+++ b/static/thesiah.sh
@@ -166,19 +166,18 @@ gitmakeinstall() {
cd "$dir" || return 1
sudo -u "$name" git pull --force origin master
}
- cd "$repodir" || exit 1
# Check the repository name and act accordingly for suckless
case "$progname" in
"suckless")
for sub in "${progname}/"*; do
- cd "$sub" || continue
+ cd "$repodir/$sub" || continue
make >/dev/null 2>&1
make install >/dev/null 2>&1
cd ..
done
;;
*)
- cd "$progname" || exit 1
+ cd "$dir" || exit 1
make >/dev/null 2>&1
make install >/dev/null 2>&1
cd ..
@@ -512,8 +511,9 @@ sshsetup() {
whiptail --infobox "Setting up ssh..." 7 50
[ -x "$(command -v "ssh")" ] || installpkg openssh
pacman -Qq openssh-"$initsys" >/dev/null 2>&1 || installpkg openssh-"$initsys"
- sed -Ei "s/^#?(PasswordAuthentication).*/\1 no;s/^#?(UsePAM).*/\1 no" /etc/ssh/sshd_config >/dev/null 2>&1
- case "$initsys" in
+ sleep 1
+ sed -Ei "s/^#?(PasswordAuthentication).*/\1 no;s/^#?(UsePAM).*/\1 no" /etc/ssh/sshd_config
+ case "$initsys" in
"runit")
ln -sf /etc/runit/sv/sshd /run/runit/service/ >/dev/null 2>&1
sleep 1