Compare commits
4 Commits
d804d339fe
...
8aeddc0b85
Author | SHA1 | Date | |
---|---|---|---|
8aeddc0b85 | |||
5d9ef8af39 | |||
c3ffd33166 | |||
267626aeba |
13
debian/changelog
vendored
13
debian/changelog
vendored
@ -1,5 +1,12 @@
|
|||||||
mobilizon (4.0.2-1) UNRELEASED; urgency=medium
|
mobilizon (4.0.2-2) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
* Initial release. (Closes: #nnnn) <nnnn is the bug number of your ITP>
|
* fix postinst script
|
||||||
|
* include wrapper script /bin/mobilizon_ctl
|
||||||
|
|
||||||
-- unknown <pitchum@unknown> Sat, 13 Jan 2024 13:54:48 +0000
|
-- pitchum <pitchum@gramaton.org> Wed, 17 Jan 2024 11:45:42 +0000
|
||||||
|
|
||||||
|
mobilizon (4.0.2-1) bookworm; urgency=medium
|
||||||
|
|
||||||
|
* Initial release.
|
||||||
|
|
||||||
|
-- pitchum <pitchum@gramaton.org> Sat, 13 Jan 2024 13:54:48 +0000
|
||||||
|
12
debian/control
vendored
12
debian/control
vendored
@ -1,17 +1,19 @@
|
|||||||
Source: mobilizon
|
Source: mobilizon
|
||||||
Section: web
|
Section: web
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: pitchum <pitchum@gramaton.org>
|
Maintainer: Chapril animsys team <animsys@chapril.org>
|
||||||
|
Uploaders:
|
||||||
|
pitchum <pitchum@gramaton.org>,
|
||||||
Rules-Requires-Root: no
|
Rules-Requires-Root: no
|
||||||
Build-Depends:
|
Build-Depends:
|
||||||
debhelper-compat (= 13),
|
debhelper-compat (= 13), git-buildpackage,
|
||||||
build-essential, curl, unzip, openssl, cmake, file, cmake,
|
build-essential, curl, unzip, openssl, cmake, file, cmake,
|
||||||
elixir, erlang-dev, erlang-eldap, imagemagick, inotify-tools, webp,
|
elixir, erlang-dev, erlang-eldap, imagemagick, inotify-tools, webp,
|
||||||
nodejs, npm,
|
nodejs, npm,
|
||||||
Standards-Version: 4.6.2
|
Standards-Version: 4.6.2
|
||||||
Homepage: https://joinmobilizon.org/
|
Homepage: https://joinmobilizon.org/
|
||||||
#Vcs-Browser: https://salsa.debian.org/debian/mobilizon
|
Vcs-Browser: https://forge.chapril.org/pitchum/debianize-mobilizon
|
||||||
#Vcs-Git: https://salsa.debian.org/debian/mobilizon.git
|
Vcs-Git: https://forge.chapril.org/pitchum/debianize-mobilizon
|
||||||
|
|
||||||
Package: mobilizon
|
Package: mobilizon
|
||||||
Architecture: any
|
Architecture: any
|
||||||
@ -19,7 +21,7 @@ Depends:
|
|||||||
${shlibs:Depends},
|
${shlibs:Depends},
|
||||||
${misc:Depends},
|
${misc:Depends},
|
||||||
imagemagick, curl, tar, file,
|
imagemagick, curl, tar, file,
|
||||||
Recommends: postgresql, postgresql-contrib, postgresql-postgis
|
Recommends: postgresql, postgresql-contrib, postgresql-postgis, postgis
|
||||||
Description: Mobilizon instance
|
Description: Mobilizon instance
|
||||||
Mobilizon is a web application that helps you find, create and organize events.
|
Mobilizon is a web application that helps you find, create and organize events.
|
||||||
.
|
.
|
||||||
|
3
debian/install
vendored
3
debian/install
vendored
@ -1,2 +1,3 @@
|
|||||||
debian/config.exs etc/mobilizon
|
debian/config.exs.tpl etc/mobilizon
|
||||||
_build/prod/rel/mobilizon usr/share
|
_build/prod/rel/mobilizon usr/share
|
||||||
|
debian/mobilizon_ctl bin
|
||||||
|
4
debian/mobilizon_ctl
vendored
Executable file
4
debian/mobilizon_ctl
vendored
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
cd /usr/share/mobilizon
|
||||||
|
sudo -u mobilizon ./bin/mobilizon_ctl $@
|
20
debian/postinst
vendored
20
debian/postinst
vendored
@ -10,7 +10,7 @@ set -e
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
# TODO create system user
|
# Create a dedicated system user
|
||||||
if ! getent passwd mobilizon >/dev/null; then
|
if ! getent passwd mobilizon >/dev/null; then
|
||||||
adduser \
|
adduser \
|
||||||
--disabled-password \
|
--disabled-password \
|
||||||
@ -23,24 +23,30 @@ case "$1" in
|
|||||||
mobilizon
|
mobilizon
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f /etc/mobilizon/config.exs ]; then
|
||||||
# Use debconf values to initialize config.exs
|
# Use debconf values to initialize config.exs
|
||||||
|
cp /etc/mobilizon/config.exs.tpl /etc/mobilizon/config.exs.tmp
|
||||||
|
|
||||||
db_get mobilizon/domain_name
|
db_get mobilizon/domain_name
|
||||||
sed -i "s/__DOMAIN_NAME__/${RET}/" /etc/mobilizon/config.exs
|
sed -i "s/__DOMAIN_NAME__/${RET}/" /etc/mobilizon/config.exs.tmp
|
||||||
|
|
||||||
db_get mobilizon/listen_port
|
db_get mobilizon/listen_port
|
||||||
sed -i "s/__LISTEN_PORT__/${RET}/" /etc/mobilizon/config.exs
|
sed -i "s/__LISTEN_PORT__/${RET}/" /etc/mobilizon/config.exs.tmp
|
||||||
|
|
||||||
db_get mobilizon/db_host
|
db_get mobilizon/db_host
|
||||||
sed -i "s/__DB_HOST__/${RET}/" /etc/mobilizon/config.exs
|
sed -i "s/__DB_HOST__/${RET}/" /etc/mobilizon/config.exs.tmp
|
||||||
|
|
||||||
db_get mobilizon/db_name
|
db_get mobilizon/db_name
|
||||||
sed -i "s/__DB_NAME__/${RET}/" /etc/mobilizon/config.exs
|
sed -i "s/__DB_NAME__/${RET}/" /etc/mobilizon/config.exs.tmp
|
||||||
|
|
||||||
db_get mobilizon/db_username
|
db_get mobilizon/db_username
|
||||||
sed -i "s/__DB_USERNAME__/${RET}/" /etc/mobilizon/config.exs
|
sed -i "s/__DB_USERNAME__/${RET}/" /etc/mobilizon/config.exs.tmp
|
||||||
|
|
||||||
db_get mobilizon/db_userpass
|
db_get mobilizon/db_userpass
|
||||||
sed -i "s/__DB_USERPASS__/${RET}/" /etc/mobilizon/config.exs
|
sed -i "s/__DB_USERPASS__/${RET}/" /etc/mobilizon/config.exs.tmp
|
||||||
|
|
||||||
|
mv /etc/mobilizon/config.exs.tmp /etc/mobilizon/config.exs
|
||||||
|
fi
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user