19 lines
622 B
Bash
Executable file
19 lines
622 B
Bash
Executable file
#!/bin/bash
|
|
|
|
APP=linkding
|
|
#Allready create on package then no -md
|
|
id $APP &> /dev/null || useradd $APP -r -s /bin/false -d /var/lib/$APP/
|
|
chown -R $APP:$APP /var/lib/$APP/
|
|
|
|
#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"
|
|
|
|
|