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:
parent
8f5f3cdb73
commit
ea58cd1766
5 changed files with 25 additions and 5 deletions
|
@ -38,8 +38,12 @@ You can also configure Simple Torrent by editing this file `/var/www/simple-torr
|
|||
|
||||
#### Supported architectures
|
||||
|
||||
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/simple-torrent/)
|
||||
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/simple-torrent/)
|
||||
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/simple-torrent/)
|
||||
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/simple-torrent/)
|
||||
|
||||
## Limitations
|
||||
|
||||
* Sorry, this app cannot be installed on a 32-bit ARM machine.
|
||||
|
||||
## Links
|
||||
|
||||
|
|
|
@ -38,8 +38,12 @@ Vous pouvez configurer Simple Torrent en modifiant le fichier `/var/www/simple-t
|
|||
|
||||
#### Architectures supportées
|
||||
|
||||
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/simple-torrent/)
|
||||
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/simple-torrent/)
|
||||
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/simple-torrent/)
|
||||
* ARMv8-A - [](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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue