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:
parent
0a2472c105
commit
d22e5ad17e
3 changed files with 17 additions and 16 deletions
|
@ -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
|
||||
|
|
|
@ -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 d’hébergement d’images. Il s’agit 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": {
|
||||
|
@ -33,20 +33,20 @@
|
|||
"default": "/lutim"
|
||||
},
|
||||
{
|
||||
"name": "admin",
|
||||
"ask": {
|
||||
"en": "Choose the Lutim administrator (must be an existing YunoHost user)",
|
||||
"fr": "Choisissez un administrateur Lutim (doit être un utilisateur YunoHost)"
|
||||
},
|
||||
"name": "admin",
|
||||
"ask": {
|
||||
"en": "Choose the Lutim administrator (must be an existing YunoHost user)",
|
||||
"fr": "Choisissez un administrateur Lutim (doit être un utilisateur YunoHost)"
|
||||
},
|
||||
"example": "john",
|
||||
"default": "mcrudelis"
|
||||
},
|
||||
{
|
||||
"name": "is_public",
|
||||
"ask": {
|
||||
"en": "Uploading images is it public?",
|
||||
"fr": "L'upload des images est-il public ?"
|
||||
},
|
||||
"name": "is_public",
|
||||
"ask": {
|
||||
"en": "Uploading images is it public?",
|
||||
"fr": "L'upload des images est-il public ?"
|
||||
},
|
||||
"choices": ["Yes", "No"],
|
||||
"default": "No"
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue