1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tandoor_ynh.git synced 2024-09-03 20:35:56 +02:00

Merge pull request #5 from YunoHost-Apps/master

sync
This commit is contained in:
Navan Chauhan 2022-08-09 18:43:55 -04:00 committed by GitHub
commit 129e80b18b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

2
conf/version.py Normal file
View file

@ -0,0 +1,2 @@
VERSION_NUMBER = "__VERSION__"
BUILD_REF = ""

View file

@ -132,6 +132,12 @@ ynh_add_config --template=".env.template" --destination="$final_path/.env"
chmod 400 "$final_path/.env" chmod 400 "$final_path/.env"
chown $app:$app "$final_path/.env" chown $app:$app "$final_path/.env"
version=$(ynh_app_upstream_version)
ynh_add_config --template="version.py" --destination="$final_path/recipes/version.py"
chmod 400 "$final_path/recipes/version.py"
chown $app:$app "$final_path/recipes/version.py"
#================================================= #=================================================
# SPECIFIC SETUP # SPECIFIC SETUP
#================================================= #=================================================

View file

@ -128,6 +128,12 @@ ynh_add_config --template=".env.template" --destination="$final_path/.env"
chmod 400 "$final_path/.env" chmod 400 "$final_path/.env"
chown $app:$app "$final_path/.env" chown $app:$app "$final_path/.env"
version=$(ynh_app_upstream_version)
ynh_add_config --template="version.py" --destination="$final_path/recipes/version.py"
chmod 400 "$final_path/recipes/version.py"
chown $app:$app "$final_path/recipes/version.py"
#================================================= #=================================================
# SPECIFIC UPGRADE # SPECIFIC UPGRADE
#================================================= #=================================================