summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--larbs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/larbs.sh b/larbs.sh
index a203fa0..0383a10 100644
--- a/larbs.sh
+++ b/larbs.sh
@@ -71,7 +71,7 @@ adduserandpass() { \
dialog --infobox "Adding user \"$name\"..." 4 50
useradd -m -g wheel -s /bin/bash "$name" >/dev/null 2>&1 ||
usermod -a -G wheel "$name" && mkdir -p /home/"$name" && chown "$name":wheel /home/"$name"
- repodir="/home/$name/.local/src"; mkdir -p "$repodir"; chown -R "$name":wheel "$repodir"
+ repodir="/home/$name/.local/src"; mkdir -p "$repodir"; chown -R "$name":wheel $(dirname "$repodir")
echo "$name:$pass1" | chpasswd
unset pass1 pass2 ;}
@@ -191,7 +191,7 @@ installpkg git
installpkg ntp
dialog --title "LARBS Installation" --infobox "Synchronizing system time to ensure successful and secure installation of software..." 4 70
-ntp 0.us.pool.ntp.org >/dev/null 2>&1
+ntpdate 0.us.pool.ntp.org >/dev/null 2>&1
[ "$distro" = arch ] && { \
[ -f /etc/sudoers.pacnew ] && cp /etc/sudoers.pacnew /etc/sudoers # Just in case