Updated install.sh

This commit is contained in:
Ethan Smith-Coss 2024-11-17 11:38:20 +00:00
parent f174b489ee
commit 1e7fa6205b
Signed by: TheOnePath
GPG Key ID: 1D351CCC6D01F32B

View File

@ -5,7 +5,7 @@ home="/home/$user"
HYPRSOLUS_PATH="/usr/src/hyprsolus"
HYPRSOLUSCTL_PATH="/usr/local/bin"
HYPRSOLUS_SYSTEMD="$home/.config/systemd/user"
HYPRSOLUS_SYSTEMD="$home/.config"
if [[ $(id -u) -ne 0 ]]
then
@ -38,7 +38,7 @@ chown root:root "${HYPRSOLUS_PATH}/hyprsolusctl"
cp -ru "${HYPRSOLUS_PATH}/systemd" "$HYPRSOLUS_SYSTEMD"
echo "(hyprsolus) Setting up systemd units."
systemctl --user -M "$user"@ enable --now \
"${HYPRSOLUS_SYSTEMD}/hyprsolus-check.timer"
"${HYPRSOLUS_SYSTEMD}/systemd/user/hyprsolus-check.timer"
echo "(hyprsolus) Installing the dependencies to system."
sh "${HYPRSOLUS_PATH}/requirements.sh"