added user recognition, more pauses, and more specific mkdir calls

This commit is contained in:
2026-08-31 23:27:31 -04:00
parent 8a86a2f980
commit c999ca0655
+33 -12
View File
@@ -86,6 +86,7 @@
# 08-29-2026: added fisher install to arch # 08-29-2026: added fisher install to arch
#*08-31-2026: added status prints and pauses for debugging #*08-31-2026: added status prints and pauses for debugging
# added if shell not fish, chsh fish # added if shell not fish, chsh fish
# capture user
# #
# ============================================================================== # ==============================================================================
@@ -106,6 +107,11 @@
# TODO i'm certain there's a better way to do this # TODO i'm certain there's a better way to do this
CWD=$( pwd ) CWD=$( pwd )
cd ~ cd ~
HOME=$( pwd )
USERS_BAD=$( users )
USERS=($USERS_BAD)
# TODO filter out the obvious part # TODO filter out the obvious part
RELEASE=$( cat /etc/os-release | grep -i "^id=" ) RELEASE=$( cat /etc/os-release | grep -i "^id=" )
OS="" OS=""
@@ -149,6 +155,7 @@ case $RELEASE in
esac esac
echo "CWD = $CWD" echo "CWD = $CWD"
echo "HOME = $HOME"
echo "" echo ""
echo "OS = $OS" echo "OS = $OS"
echo "INS = $INS" echo "INS = $INS"
@@ -437,17 +444,24 @@ if [[ $OS = "arch" ]]; then
$INS $NOCONF $FLAG fisher $INS $NOCONF $FLAG fisher
echo "creating dirs" echo "creating dirs"
mkdir ~/Documents read
mkdir ~/Projects
mkdir ~/Pictures mkdir -p $HOME/Documents
echo "mkdir documents status = $?"
mkdir -p $HOME/Projects
echo "mkdir projects status = $?"
mkdir -p $HOME/Pictures
echo "mkdir pictures status = $?"
echo "installing paru" echo "installing paru"
mkdir -p ~/Documents/paru/src read
cd ~/Documents/paru/src
mkdir -p $HOME/Documents/paru/src
cd $HOME/Documents/paru/src
git clone https://aur.archlinux.org/paru.git git clone https://aur.archlinux.org/paru.git
cd paru cd paru
makepkg -si makepkg -si
cd ~ cd $HOME
# download acli ( x86 ) # download acli ( x86 )
echo "download acli bin" echo "download acli bin"
@@ -473,7 +487,10 @@ if [[ $OS = "arch" ]]; then
if [[ $MODE -eq 2 ]]; then if [[ $MODE -eq 2 ]]; then
#$INS $NOCONF $FLAG #$INS $NOCONF $FLAG
echo "make Util dir" echo "make Util dir"
mkdir ~/Utilities read
mkdir -p $HOME/Utilities
echo "mkdir util status = $?"
read
echo "installing gitea" echo "installing gitea"
$INS $NOCONF $FLAG gitea $INS $NOCONF $FLAG gitea
#echo "installing pihole" #echo "installing pihole"
@@ -542,7 +559,7 @@ read
if [[ $SHELL != "/usr/bin/fish" && $SHELL != "/bin/fish" ]]; then if [[ $SHELL != "/usr/bin/fish" && $SHELL != "/bin/fish" ]]; then
echo "changing shell" echo "changing shell"
chsh -s /usr/bin/fish chsh -s /usr/bin/fish ${USERS[0]}
read read
fi fi
@@ -558,20 +575,22 @@ $INS $NOCONF $FLAG tmux
echo "installing tldr" echo "installing tldr"
$INS $NOCONF $FLAG tealdeer $INS $NOCONF $FLAG tealdeer
read
# install acli # install acli
echo "installing acli" echo "installing acli"
chmod u+x ~/acli chmod u+x ~/acli
mv ~/acli /usr/local/bin/ mv ~/acli /usr/local/bin/
read
## user specific general install ## user specific general install
## operating mode specific general install ## operating mode specific general install
if [[ $MODE -eq 2 ]]; then if [[ $MODE -eq 2 ]]; then
echo "installing caddy ( based )" echo "installing caddy ( based )"
$INS $NOCONF $FLAG caddy $INS $NOCONF $FLAG caddy
# make directory for dynamic dns service read
mkdir -p ~/.config/dynu
cd $CWD cd $CWD
# copy dynu service and timer # copy dynu service and timer
ln -s $CWD/.config/dynu/dynu.timer /etc/systemd/system/ ln -s $CWD/.config/dynu/dynu.timer /etc/systemd/system/
@@ -582,10 +601,12 @@ fi
# GIT_CLONES # GIT_CLONES
cd ~/Projects cd $HOME/Projects
#git clone https://github.com/alexander-the-alright/ #git clone https://github.com/alexander-the-alright/
#git clone https://codeberg.org/alexander-the-alright/ekho #git clone https://codeberg.org/alexander-the-alright/ekho
git clone https://earth-1.net/oracle/ekho git clone https://earth-1.net/oracle/ekho
echo "ekho clone status = $?"
read
# TODO install # TODO install
exit exit