1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/endi_ynh.git synced 2024-09-03 18:35:54 +02:00

Bump to 6.5.4 upstream, hoping to fix issues with endi-admin

This commit is contained in:
Salamandar 2023-01-18 19:44:53 +01:00 committed by Félix Piédallu
parent 72c32506e7
commit b3c6175bc5
3 changed files with 8 additions and 13 deletions

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://framagit.org/endi/endi/-/archive/6ad0200603817e2e164c13ec2581746d49896e39/endi-6ad0200603817e2e164c13ec2581746d49896e39.tar.gz SOURCE_URL=https://framagit.org/endi/endi/-/archive/8d2d1e9cbc495dd48712d380c9f039a4e5b877dc/endi-8d2d1e9cbc495dd48712d380c9f039a4e5b877dc.tar.gz
SOURCE_SUM=fbf62392be556cb3d24c9ef7176a576e105f0bb774bbeb678b8932289e7cb43b SOURCE_SUM=16fdee654c59c1ce1f914ca5a620fb9cebd3d2bd5e03e9d4442e68a5daf559ae
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "A comptability software for CAE companies (french Communauté d'Activité et d'Emploi)", "en": "A comptability software for CAE companies (french Communauté d'Activité et d'Emploi)",
"fr": "Un progiciel de gestion comptable à l'usage des CAE (Communauté d'Activité et d'Emploi)" "fr": "Un progiciel de gestion comptable à l'usage des CAE (Communauté d'Activité et d'Emploi)"
}, },
"version": "1.0~ynh1", "version": "6.5.4~ynh1",
"url": "https://endi.coop", "url": "https://endi.coop",
"upstream": { "upstream": {
"license": "GPLv3", "license": "GPLv3",

View file

@ -117,9 +117,6 @@ ynh_setup_source --dest_dir="$final_path/endi"
cython_version=$(cython3 --version 2>&1 | sed 's|Cython version ||') cython_version=$(cython3 --version 2>&1 | sed 's|Cython version ||')
sed -i "s|Cython=.*|Cython==$cython_version|" "$final_path/endi/requirements.txt" sed -i "s|Cython=.*|Cython==$cython_version|" "$final_path/endi/requirements.txt"
# Patch endi-admin command bug
sed -i "s|arguments.password|arguments.pwd|" "$final_path/endi/endi/scripts/endi_admin.py"
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"
@ -188,16 +185,14 @@ ynh_add_systemd_config
#================================================= #=================================================
ynh_script_progression --message="Configuring enDI..." --weight=1 ynh_script_progression --message="Configuring enDI..." --weight=1
( pushd "$final_path" 2>&1
cd "$final_path"
ynh_exec_as $app "$final_path/venv/bin/endi-admin" endi.ini syncdb ynh_exec_as $app "$final_path/venv/bin/endi-admin" endi.ini syncdb
# ynh_exec_as $app "$final_path/venv/bin/endi-migrate" app.ini syncdb --pkg=endi_payment # ynh_exec_as $app "$final_path/venv/bin/endi-migrate" app.ini syncdb --pkg=endi_payment
# ynh_exec_as $app "$final_path/venv/bin/endi-admin" endi.ini useradd --group=admin --user="admin" --pwd="$password" \ ynh_exec_as $app "$final_path/venv/bin/endi-admin" endi.ini useradd --group=admin --user="admin" --pwd="$password" \
# --email="admin@$domain" --email="admin@$domain"
popd 2>&1
)
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION