Fix git_repo_url variable and set the catask user's shell to nologin

This commit is contained in:
max 2024-09-24 23:12:03 -04:00
parent 82c6a8b67b
commit 8d7e051765

View file

@ -3,7 +3,7 @@
working_dir=~/tmp/catask
bold=$(tput bold)
normal=$(tput sgr0)
git_repo_url="https://git.mst.k.vu/mst/catask"
git_repo_url="https://git.gay/mst/catask"
git_repo_issue_url="${git_repo_url}/issues/new"
echo "--------------------------"
@ -12,7 +12,7 @@ echo "--------------------------"
echo
echo "${bold}Cloning the repository...${normal}"
# this might work... or not, who knows
id -u catask >/dev/null 2>&1 || sudo useradd -r -s /bin/false -m -d /etc/catask -U catask
id -u catask >/dev/null 2>&1 || sudo useradd -r -s $(which nologin) -m -d /etc/catask -U catask
# cloning dev branch for now because the installer doesn't exist in main branch yet
git clone $git_repo_url $working_dir --branch dev
cd $working_dir