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

Merge pull request #7 from YunoHost-Apps/testing

Prevent installations on ARM and ARM64
This commit is contained in:
tituspijean 2022-05-14 11:34:30 +02:00 committed by GitHub
commit 735d653452
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 0 deletions

View file

@ -28,6 +28,7 @@ A web based, real time, collaborative whiteboard application with rich media sup
## Disclaimers / important information ## Disclaimers / important information
* ARM and ARM64 architectures are not supported
* The app can only be installed at the root of a domain * The app can only be installed at the root of a domain
* There is no integration with YunoHost SSO * There is no integration with YunoHost SSO
* A email is send at the end of the installation with the Beta Invite Code * A email is send at the end of the installation with the Beta Invite Code

View file

@ -24,6 +24,7 @@ A web based, real time, collaborative whiteboard application with rich media sup
## Avertissements / informations importantes ## Avertissements / informations importantes
* ARM and ARM64 architectures are not supported
* The app can only be installed at the root of a domain * The app can only be installed at the root of a domain
* There is no integration with YunoHost SSO * There is no integration with YunoHost SSO
* A email is send at the end of the installation with the Beta Invite Code * A email is send at the end of the installation with the Beta Invite Code

View file

@ -1,3 +1,4 @@
* ARM and ARM64 architectures are not supported
* The app can only be installed at the root of a domain * The app can only be installed at the root of a domain
* There is no integration with YunoHost SSO * There is no integration with YunoHost SSO
* A email is send at the end of the installation with the Beta Invite Code * A email is send at the end of the installation with the Beta Invite Code

View file

@ -35,6 +35,11 @@ app=$YNH_APP_INSTANCE_NAME
#================================================= #=================================================
ynh_script_progression --message="Validating installation parameters..." --weight=1 ynh_script_progression --message="Validating installation parameters..." --weight=1
if [[ $YNH_ARCH =~ ^arm ]] || [ $YNH_ARCH == "aarch64" ]
then
ynh_die --message="Sorry, this app cannot be installed on ARM and ARM64 architectures."
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"