Skip to content

Instantly share code, notes, and snippets.

@macthecadillac
macthecadillac / nextcloud-podman.sh
Created February 3, 2024 02:41
Nextcloud + Syncthing + rootless Podman & systemd integration
#!/bin/bash
systemd_tasks() {
podman generate systemd --new --name $1 > ~/.config/systemd/user/$1.service
podman container stop $1
systemctl --user daemon-reload
systemctl --user --now enable $1.service
}
mkdir -p ~/.config/systemd/user
mkdir -p ~/.local/share/nextcloud-pod/mariadb