Add linkding
This commit is contained in:
parent
8e369abbb2
commit
d71fcdf702
7 changed files with 119 additions and 0 deletions
0
ressources/linkding/rootfs/DEBIAN/changelog
Normal file
0
ressources/linkding/rootfs/DEBIAN/changelog
Normal file
1
ressources/linkding/rootfs/DEBIAN/conffiles
Normal file
1
ressources/linkding/rootfs/DEBIAN/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/default/linkding
|
8
ressources/linkding/rootfs/DEBIAN/control
Normal file
8
ressources/linkding/rootfs/DEBIAN/control
Normal file
|
@ -0,0 +1,8 @@
|
|||
Package: linkding
|
||||
Version: %VERSION%
|
||||
Section: contrib
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: python3 ( >= 3.10 ), python-is-python3, python3-pip, build-essential, python3-dev
|
||||
Maintainer: Thomas Legay <thomas@lgy.fr>
|
||||
Description: linkding
|
19
ressources/linkding/rootfs/DEBIAN/postinst
Executable file
19
ressources/linkding/rootfs/DEBIAN/postinst
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
#Allready create on package then no -md
|
||||
id linkding &> /dev/null || useradd linkding -r -s /bin/false -d /var/lib/linkding
|
||||
|
||||
chown linkding:linkding /var/lib/linkding -R
|
||||
|
||||
#Need to be remove because usr need to be in read only
|
||||
chown linkding:linkding /usr/share/linkding/bookmarks/static -R
|
||||
|
||||
su - -s /usr/bin/bash linkding -c "pip3 install -r /usr/share/linkding/requirements.txt --no-warn-script-location"
|
||||
|
||||
#Upgrade Database
|
||||
su - -s /usr/bin/bash linkding -c "python /usr/share/linkding/manage.py migrate"
|
||||
|
||||
#Create secret
|
||||
su - -s /usr/bin/bash linkding -c "python /usr/share/linkding/manage.py generate_secret_key"
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue