ModernOSWeather/scripts/install.sh

19 lines
363 B
Bash
Raw Normal View History

#!/bin/bash
2024-10-07 10:57:04 +03:00
SCRIPT=$(readlink -f "$0")
DIR=$(dirname "$SCRIPT")
2024-10-09 15:41:39 +03:00
# Create dirrectory for systemd scripts
cd $HOME/.config/
mkdir systemd
cd systemd/
mkdir user
# Update daemon files
2024-10-09 15:41:39 +03:00
cd "$DIR"
2024-10-07 10:57:04 +03:00
cp -ur ../services/* ~/.config/systemd/user
# Daemon launch
/usr/bin/systemctl --user daemon-reload
/usr/bin/systemctl --user enable wthrc.service
echo "Done installer"