add/update service restart postinst
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
added/updated for dufs-bin, filebrowser-bin, forgejo-bin, plik-bin, remark42-bin
This commit is contained in:
parent
f6e18a796d
commit
389458615e
|
@ -3,7 +3,7 @@
|
||||||
pkgname="dufs"
|
pkgname="dufs"
|
||||||
arch="amd64"
|
arch="amd64"
|
||||||
pkgver="0.38.0"
|
pkgver="0.38.0"
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="A file server that supports static serving, uploading, searching, accessing control, webdav..."
|
pkgdesc="A file server that supports static serving, uploading, searching, accessing control, webdav..."
|
||||||
url="https://github.com/sigoden/dufs"
|
url="https://github.com/sigoden/dufs"
|
||||||
maintainer="Leafee98 <me@leafee98.com>"
|
maintainer="Leafee98 <me@leafee98.com>"
|
||||||
|
@ -26,8 +26,13 @@ function debian_postinst {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
adduser --system dufs
|
adduser --system dufs
|
||||||
|
|
||||||
mkdir -p /srv/dufs
|
mkdir -p /srv/dufs
|
||||||
chown dufs:dufs -R /srv/dufs
|
chown dufs:dufs -R /srv/dufs
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
if systemctl is-active --quiet dufs.service ; then
|
||||||
|
systemctl restart dufs.service
|
||||||
|
fi
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
pkgname="filebrowser"
|
pkgname="filebrowser"
|
||||||
arch="amd64"
|
arch="amd64"
|
||||||
pkgver="2.26.0"
|
pkgver="2.26.0"
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Web File Browser"
|
pkgdesc="Web File Browser"
|
||||||
maintainer="Leafee98 <me@leafee98.com>"
|
maintainer="Leafee98 <me@leafee98.com>"
|
||||||
url="https://github.com/filebrowser/filebrowser"
|
url="https://github.com/filebrowser/filebrowser"
|
||||||
|
@ -26,3 +26,15 @@ function package {
|
||||||
install -Dm644 ${srcdir}/filebrowser.service ${pkgdir}/usr/lib/systemd/system/filebrowser.service
|
install -Dm644 ${srcdir}/filebrowser.service ${pkgdir}/usr/lib/systemd/system/filebrowser.service
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function debian_postinst {
|
||||||
|
cat << EOF
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
adduser --system filebrowser
|
||||||
|
|
||||||
|
systemctl daemon-reload
|
||||||
|
|
||||||
|
if systemctl is-active --quiet filebrowser.service ; then
|
||||||
|
systemctl restart filebrowser.service
|
||||||
|
fi
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
|
@ -3,12 +3,12 @@ Description=Filebrowser is a Web File Browser
|
||||||
After=network.target apache2.service
|
After=network.target apache2.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
# User=filebrowser
|
User=filebrowser
|
||||||
# Group=filebrowser
|
Group=filebrowser
|
||||||
|
|
||||||
WorkingDirectory=/var/lib/filebrowser
|
WorkingDirectory=/var/lib/filebrowser
|
||||||
|
|
||||||
ExecStart=/usr/bin/filebrowser -r /path/to/your/storage
|
ExecStart=/usr/bin/filebrowser -r /var/lib/filebrowser
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
pkgname="forgejo"
|
pkgname="forgejo"
|
||||||
arch="amd64"
|
arch="amd64"
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgver="1.21.2-1"
|
pkgver="1.21.2-1"
|
||||||
pkgdesc="A painless selfhost git service."
|
pkgdesc="A painless selfhost git service."
|
||||||
url="https://codeberg.org/forgejo/forgejo"
|
url="https://codeberg.org/forgejo/forgejo"
|
||||||
|
@ -33,5 +33,8 @@ adduser --system git
|
||||||
chown -R git:git /var/lib/forgejo
|
chown -R git:git /var/lib/forgejo
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
if systemctl is-active --quiet forgejo.service ; then
|
||||||
|
systemctl restart forgejo.service
|
||||||
|
fi
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
pkgname="plik-bin"
|
pkgname="plik-bin"
|
||||||
arch="amd64"
|
arch="amd64"
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgver="1.3.8"
|
pkgver="1.3.8"
|
||||||
pkgdesc="Plik is a temporary file upload system (Wetransfer like) in Go."
|
pkgdesc="Plik is a temporary file upload system (Wetransfer like) in Go."
|
||||||
_arch="amd64"
|
_arch="amd64"
|
||||||
|
@ -30,6 +30,10 @@ function debian_postinst {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
adduser --system plik
|
adduser --system plik
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
if systemctl is-active --quiet plik.service ; then
|
||||||
|
systemctl restart plik.service
|
||||||
|
fi
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
pkgname="remark42"
|
pkgname="remark42"
|
||||||
pkgver=1.12.0
|
pkgver=1.12.0
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
arch="amd64"
|
arch="amd64"
|
||||||
pkgcommit=""
|
pkgcommit=""
|
||||||
section="utils"
|
section="utils"
|
||||||
|
@ -31,5 +31,10 @@ function debian_postinst {
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
touch /etc/default/remark42
|
touch /etc/default/remark42
|
||||||
adduser --system remark42
|
adduser --system remark42
|
||||||
|
|
||||||
|
systemctl daemon-reload
|
||||||
|
if systemctl is-active --quiet remark42.service ; then
|
||||||
|
systemctl restart remark42.service
|
||||||
|
fi
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue