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
|
#### Supported architectures
|
||||||
|
|
||||||
* x86-64 - [](https://ci-apps.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/)
|
* 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
|
## Links
|
||||||
|
|
||||||
|
|
|
@ -38,8 +38,12 @@ Vous pouvez configurer Simple Torrent en modifiant le fichier `/var/www/simple-t
|
||||||
|
|
||||||
#### Architectures supportées
|
#### Architectures supportées
|
||||||
|
|
||||||
* x86-64 - [](https://ci-apps.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/)
|
* 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
|
## Liens
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,12 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Validating installation parameters..." --weight=1
|
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
|
final_path=/var/www/$app
|
||||||
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,12 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
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
|
# Cleaning legacy permissions
|
||||||
if ynh_legacy_permissions_exists; then
|
if ynh_legacy_permissions_exists; then
|
||||||
ynh_legacy_permissions_delete_all
|
ynh_legacy_permissions_delete_all
|
||||||
|
|
Loading…
Add table
Reference in a new issue