1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/chatonsinfos_ynh.git synced 2024-09-03 18:15:58 +02:00
This commit is contained in:
ljf 2023-09-03 23:49:38 +02:00 committed by ljf (zamentur)
parent 574d5e458b
commit ff2ad870af
2 changed files with 4 additions and 1 deletions

View file

@ -6,6 +6,7 @@ location __PATH__/ {
# Path to source # Path to source
alias __INSTALL_DIR__/public/; alias __INSTALL_DIR__/public/;
index index.html;
try_files $uri $uri/ index.html;
gzip off; gzip off;
} }

View file

@ -35,6 +35,8 @@ ynh_script_progression --message="Setting up source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir/sources" ynh_setup_source --dest_dir="$install_dir/sources"
mkdir $install_dir/public mkdir $install_dir/public
# Empty html page to fix the CI
echo "<html><body>ChatonsInfos</body></html>" > $install_dir/public/index.html
# $install_dir will automatically be initialized with some decent # $install_dir will automatically be initialized with some decent
# permission by default ... however, you may need to recursively reapply # permission by default ... however, you may need to recursively reapply
# ownership to all files such as after the ynh_setup_source step # ownership to all files such as after the ynh_setup_source step