From 64aac4f509b6483ee33e3cfb5baea62f13b212a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Wed, 31 Mar 2021 16:15:52 +0300 Subject: [PATCH] Modular Install script --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index fb6cab50..ab3f8cda 100755 --- a/install.sh +++ b/install.sh @@ -87,9 +87,9 @@ yay --noconfirm -S xsel clipnotify yay --noconfirm -S ttf-symbola (cd ~/.dotfiles/suckless; ~/.dotfiles/suckless/build.sh) -if [ ! -f "/var/spool/cron$username" ]; then +if [ ! -f "/var/spool/cron/$username" ]; then sudo touch "/var/spool/cron/$username" - sudo chown yigit:yigit "/var/spool/cron/$username" + sudo chown $username:$username "/var/spool/cron/$username" sudo chmod 755 "/var/spool/cron/$username" fi @@ -111,10 +111,10 @@ mkdir -p "$JUPYTER_CONFIG_DIR" mkdir -p "$PYLINTHOME" touch "$_Z_DATA" -echo "*/8 * * * * /home/$username/.local/bin/mailsync" >> /var/spool/cron/yigit -echo "*/15 * * * * /home/$username/.local/bin/scripts/nextcloud-sync" >> /var/spool/cron/yigit -echo "*/30 * * * * calcurse-caldav" >> /var/spool/cron/yigit -echo "*/30 * * * * vdirsyncer sync" >> /var/spool/cron/yigit +echo "*/8 * * * * /home/$username/.local/bin/mailsync" >> /var/spool/cron/$username +echo "*/15 * * * * /home/$username/.local/bin/scripts/nextcloud-sync" >> /var/spool/cron/$username +echo "*/30 * * * * calcurse-caldav" >> /var/spool/cron/$username +echo "*/30 * * * * vdirsyncer sync" >> /var/spool/cron/$username # Root sudo cp ~/.dotfiles/root/dwm.desktop /usr/share/xsessions