mirror of
https://github.com/YunoHost-Apps/spacedeck_ynh.git
synced 2024-09-03 20:26:14 +02:00
Prevent installation on ARM and ARM64
This commit is contained in:
parent
aae5337193
commit
3041908004
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
* ARM and ARM64 architectures are not supported
|
||||
* The app can only be installed at the root of a domain
|
||||
* There is no integration with YunoHost SSO
|
||||
* A email is send at the end of the installation with the Beta Invite Code
|
||||
|
|
|
@ -35,6 +35,11 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
#=================================================
|
||||
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
|
||||
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue