Skip to content

Commit

Permalink
Add ludusavi
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeguzis committed Sep 20, 2024
1 parent 6073879 commit 2a6d3f3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions utilities/install-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ flatpak install --user --noninteractive flathub net.lutris.Lutris
flatpak install --user --noninteractive flathub org.winehq.Wine
flatpak install --user --noninteractive flathub tv.plex.PlexDesktop
flatpak install --user --noninteractive flathub org.zdoom.GZDoom
flatpak install --user --noninteractive flathub com.github.mtkennerly.ludusavi

# For Decky Loader dev
if [[ ! -f "${HOME}/.local/share/pnpm/pnpm" ]]; then
Expand Down Expand Up @@ -82,3 +83,28 @@ if [[ "${CONFIG_TRANSMISSION}" == "y" ]]; then
vim "~/.config/transmission-daemon/settings.json"
sudo systemctl start transmission.service
fi

# systemd units (user mode)
echo -e "\n[INFO] Installing systemd user service for ludusavi (backups)"
cat > "${HOME}/.config/systemd/user/ludusavi-backup.service" <<EOF
[Unit]
Description="Ludusavi backup"
[Service]
ExecStart=/opt/ludusavi backup --force
EOF

cat > "${HOME}/.config/systemd/user/ludusavi-backup.timer" <<EOF
[Unit]
Description="Ludusavi backup timer"
[Timer]
OnCalendar=*/30 * * * *
Unit=ludusavi-backup.service
[Install]
WantedBy=timers.target
EOF

echo -e "\n[INFO] Done!"

0 comments on commit 2a6d3f3

Please sign in to comment.