1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/simple-torrent_ynh.git synced 2024-09-03 20:26:18 +02:00

Warn on 32 bit processor

This commit is contained in:
ericgaspar 2021-04-12 22:55:10 +02:00
parent 8f5f3cdb73
commit ea58cd1766
No known key found for this signature in database
GPG key ID: 574F281483054D44
5 changed files with 25 additions and 5 deletions

View file

@ -38,8 +38,12 @@ You can also configure Simple Torrent by editing this file `/var/www/simple-torr
#### Supported architectures
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/simple-torrent%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/simple-torrent/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/simple-torrent%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/simple-torrent/)
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/simple-torrent.svg)](https://ci-apps.yunohost.org/ci/apps/simple-torrent/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/simple-torrent.svg)](https://ci-apps-arm.yunohost.org/ci/apps/simple-torrent/)
## Limitations
* Sorry, this app cannot be installed on a 32-bit ARM machine.
## Links

View file

@ -38,8 +38,12 @@ Vous pouvez configurer Simple Torrent en modifiant le fichier `/var/www/simple-t
#### Architectures supportées
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/simple-torrent%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/simple-torrent/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/simple-torrent%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/simple-torrent/)
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/simple-torrent.svg)](https://ci-apps.yunohost.org/ci/apps/simple-torrent/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/simple-torrent.svg)](https://ci-apps-arm.yunohost.org/ci/apps/simple-torrent/)
## Limitations
* Désolé, cette application ne peut pas être installée sur une machine ARM 32 bits.
## Liens

View file

@ -32,6 +32,12 @@ app=$YNH_APP_INSTANCE_NAME
#=================================================
ynh_script_progression --message="Validating installation parameters..." --weight=1
# Check machine architecture (in particular, we don't support ARM 32bit machines)
if [ $architecture == "unknown" ]
then
ynh_die --message="Sorry, this app cannot be installed on a 32-bit ARM machine."
fi
final_path=/var/www/$app
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"

View file

@ -65,7 +65,7 @@ ynh_restore_file --origin_path="$final_path"
#=================================================
# RESTORE DATA
#=================================================
ynh_script_progression --message="Restoring $app data..." --weight=10
ynh_script_progression --message="Restoring $app data..." --weight=10
ynh_restore_file --origin_path="/home/yunohost.app/$app" --not_mandatory

View file

@ -35,6 +35,12 @@ upgrade_type=$(ynh_check_app_version_changed)
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
# Check machine architecture (in particular, we don't support ARM 32bit machines)
if [ $architecture == "unknown" ]
then
ynh_die --message="Sorry, this app cannot be installed on a 32-bit ARM machine."
fi
# Cleaning legacy permissions
if ynh_legacy_permissions_exists; then
ynh_legacy_permissions_delete_all