Updated install.sh
Fixed ethan to now be logname.
This commit is contained in:
parent
f9391030c5
commit
8e8ba68bc7
|
|
@ -4,6 +4,8 @@ HYPRSOLUS_PATH="/usr/src/hyprsolus"
|
||||||
HYPRSOLUSCTL_PATH="/usr/local/bin"
|
HYPRSOLUSCTL_PATH="/usr/local/bin"
|
||||||
HYPRSOLUS_SYSTEMD="$HOME/.config/systemd/user"
|
HYPRSOLUS_SYSTEMD="$HOME/.config/systemd/user"
|
||||||
|
|
||||||
|
user="$(logname)"
|
||||||
|
|
||||||
if [[ $(id -u) -ne 0 ]]
|
if [[ $(id -u) -ne 0 ]]
|
||||||
then
|
then
|
||||||
echo "Please run script with root privilages."
|
echo "Please run script with root privilages."
|
||||||
|
|
@ -23,7 +25,7 @@ sudo git clone --depth=1 https://git.closedless.xyz/TheOnePath/hyprsolus.git \
|
||||||
"$HYPRSOLUS_PATH"
|
"$HYPRSOLUS_PATH"
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
[[ $exit_code -ne 0 ]] && exit 1
|
[[ $exit_code -ne 0 ]] && exit 1
|
||||||
sudo chown -R "$USER:$USER" "$HYPRSOLUS_PATH"
|
sudo chown -R "$user:$user" "$HYPRSOLUS_PATH"
|
||||||
|
|
||||||
echo "(hyprsolus) Moving additional scripts to system."
|
echo "(hyprsolus) Moving additional scripts to system."
|
||||||
sudo cp -u "${HYPRSOLUS_PATH}/hyprsolusctl" "$HYPRSOLUSCTL_PATH"
|
sudo cp -u "${HYPRSOLUS_PATH}/hyprsolusctl" "$HYPRSOLUSCTL_PATH"
|
||||||
|
|
@ -33,7 +35,7 @@ sudo chown root:root "${HYPRSOLUS_PATH}/hyprsolusctl"
|
||||||
|
|
||||||
sudo cp -ru "${HYPRSOLUS_PATH}/systemd" "$HYPRSOLUS_SYSTEMD"
|
sudo cp -ru "${HYPRSOLUS_PATH}/systemd" "$HYPRSOLUS_SYSTEMD"
|
||||||
echo "(hyprsolus) Setting up systemd units."
|
echo "(hyprsolus) Setting up systemd units."
|
||||||
systemctl --user -M "$USER"@ enable --now \
|
systemctl --user -M "$user"@ enable --now \
|
||||||
"${HYPRSOLUS_SYSTEMD}/hyprsolus-check.timer"
|
"${HYPRSOLUS_SYSTEMD}/hyprsolus-check.timer"
|
||||||
|
|
||||||
echo "(hyprsolus) Installing the dependencies to system."
|
echo "(hyprsolus) Installing the dependencies to system."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user