1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lutim_ynh.git synced 2024-09-03 19:36:24 +02:00

Maj manifest

This commit is contained in:
Maniack Crudelis 2015-03-19 20:44:26 +01:00
parent 0a2472c105
commit d22e5ad17e
3 changed files with 17 additions and 16 deletions

View file

@ -17,7 +17,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=script/lutim
NAME=lutim
DESC=lutim
LUTIM_DIR=__PATH__
LUTIM_DIR=__FINALPATH__
if [ -f "/etc/default/lutim" ]
then

View file

@ -2,14 +2,14 @@
"name": "Lutim",
"id": "lutim",
"description": {
"en": "Leed is a minimalistic RSS feed aggregator which allows quick and non-intrusive reading of feeds.",
"fr": "Lutim est un logiciel dhébergement dimages. Il sagit aussi du nom du logiciel (libre) qui fournit ce service."
"en": "Images self hosting application",
"fr": "Application d'upload d'images"
},
"version": "0.6",
"url": "https://lut.im",
"maintainer": {
"name": "Maniack Crudelis",
"email": "maniackc_dev@crudelis.fr"
"name": "Maniack Crudelis et matlink",
"email": "maniackc_dev@crudelis.fr matlink@matlink.fr"
},
"multi_instance": "false",
"arguments": {

View file

@ -70,12 +70,13 @@ sudo cp ../conf/lutim.conf.template $final_path/lutim.conf
sudo sed -i "s@__DOMAIN__@$domain@g" $final_path/lutim.conf
sudo sed -i "s@__PATH__@$path@g" $final_path/lutim.conf
sudo sed -i "s@__PORT__@$port@g" $final_path/lutim.conf
secret=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{24\}\).*/\1/p')
secret=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d 'A-Za-z0-9' | sed -n 's/\(.\{24\}\).*/\1/p')
sudo sed -i "s@__SECRET__@$secret@g" $final_path/lutim.conf
# Mise en place des scripts init
sudo cp ../conf/lutim.init /etc/init.d/lutim
sudo sed -i "s@__FINALPATH__@$final_path@g" /etc/init.d/lutim
sudo cp ../conf/lutim.default /etc/default/lutim
sudo chmod +x /etc/init.d/lutim
sudo chown root:root /etc/init.d/lutim /etc/default/lutim