mirror of
https://github.com/YunoHost-Apps/lutim_ynh.git
synced 2024-09-03 19:36:24 +02:00
MAJ 0.7.1
This commit is contained in:
parent
9e36f8cc7a
commit
df17dfd2c8
9 changed files with 33 additions and 14 deletions
|
@ -1,2 +1,2 @@
|
||||||
SOURCE_URL>https://git.framasoft.org/luc/lutim/repository/archive.tar.gz?ref=1082f42682988453aef2a130ce99d3eae2e950ba
|
SOURCE_URL>https://framagit.org/luc/lutim/repository/archive.tar.gz?ref=dd4ca47ac0ea8e5527364ba9ebddfab0c977f3ea
|
||||||
SOURCE_SUM=1a9a8dec0e418a87a32799b0b875813a
|
SOURCE_SUM=64e86adf69cf63fcf025314a5ee5d30c
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
# array of IP addresses and ports you want to listen to
|
# array of IP addresses and ports you want to listen to
|
||||||
#listen => ['http://127.0.0.1:8080'],
|
#listen => ['http://127.0.0.1:8080'],
|
||||||
listen => ['http://127.0.0.1:__PORT__'],
|
listen => ['http://127.0.0.1:__PORT__'],
|
||||||
|
# if you use Lutim behind a reverse proxy like Nginx, you want to set proxy to 1
|
||||||
|
# if you use Lutim directly, let it commented
|
||||||
|
proxy => 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
################
|
################
|
||||||
|
@ -110,6 +113,14 @@
|
||||||
# optional, default is lutim.db
|
# optional, default is lutim.db
|
||||||
#db_path => 'lutim.db',
|
#db_path => 'lutim.db',
|
||||||
|
|
||||||
|
# define the height of the thumbnails generated at users' will
|
||||||
|
# this is not the height of the thumbnails send after upload,
|
||||||
|
# we're talking about thumbnails generated when someone asked for
|
||||||
|
# https://example.org/lutim/tesrinp?thumb
|
||||||
|
# this works only if you have ImageMagick
|
||||||
|
# optional, default is 100 (pixels)
|
||||||
|
#thumbnail_size => 100,
|
||||||
|
|
||||||
##########################
|
##########################
|
||||||
# Lutim cron jobs settings
|
# Lutim cron jobs settings
|
||||||
##########################
|
##########################
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"en": "Self hosting images and sharing anonymous application",
|
"en": "Self hosting images and sharing anonymous application",
|
||||||
"fr": "Application d'hébergement et de partage d'images anonyme"
|
"fr": "Application d'hébergement et de partage d'images anonyme"
|
||||||
},
|
},
|
||||||
"version": "0.6",
|
"version": "0.7.1",
|
||||||
"url": "https://lut.im",
|
"url": "https://lut.im",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -224,6 +224,13 @@ CHECK_MD5_CONFIG () { # Créé un backup du fichier de config si il a été modi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# PACKAGE CHECK BYPASSING...
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
IS_PACKAGE_CHECK () { # Détermine une exécution en conteneur (Non testé)
|
||||||
|
return $(uname -n | grep -c 'pchecker_lxc')
|
||||||
|
}
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
#=================================================
|
#=================================================
|
|
@ -13,12 +13,12 @@ set -eu
|
||||||
# IMPORT GENERIC HELPERS
|
# IMPORT GENERIC HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if [ ! -e .fonctions ]; then
|
if [ ! -e _common.sh ]; then
|
||||||
# Rapatrie le fichier de fonctions si il n'est pas dans le dossier courant
|
# Rapatrie le fichier de fonctions si il n'est pas dans le dossier courant
|
||||||
sudo cp ../settings/scripts/.fonctions ./.fonctions
|
sudo cp ../settings/scripts/_common.sh ./_common.sh
|
||||||
sudo chmod a+rx .fonctions
|
sudo chmod a+rx _common.sh
|
||||||
fi
|
fi
|
||||||
source .fonctions
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# IMPORT GENERIC HELPERS
|
# IMPORT GENERIC HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
source .fonctions
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -159,6 +159,7 @@ sudo chown -R $app: $final_path
|
||||||
sudo systemctl start lutim
|
sudo systemctl start lutim
|
||||||
# Set right permissions on new files created at first start
|
# Set right permissions on new files created at first start
|
||||||
sudo chown -R $app: $final_path
|
sudo chown -R $app: $final_path
|
||||||
|
sleep 2
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# GENERIC FINALISATION
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# IMPORT GENERIC HELPERS
|
# IMPORT GENERIC HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
source .fonctions
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -13,12 +13,12 @@ set -eu
|
||||||
# IMPORT GENERIC HELPERS
|
# IMPORT GENERIC HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if [ ! -e .fonctions ]; then
|
if [ ! -e _common.sh ]; then
|
||||||
# Rapatrie le fichier de fonctions si il n'est pas dans le dossier courant
|
# Rapatrie le fichier de fonctions si il n'est pas dans le dossier courant
|
||||||
sudo cp ../settings/scripts/.fonctions ./.fonctions
|
sudo cp ../settings/scripts/_common.sh ./_common.sh
|
||||||
sudo chmod a+rx .fonctions
|
sudo chmod a+rx _common.sh
|
||||||
fi
|
fi
|
||||||
source .fonctions
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# IMPORT GENERIC HELPERS
|
# IMPORT GENERIC HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
source .fonctions
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue