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

Merge pull request #27 from YunoHost-Apps/check-for-architecture

Check that architecture is supported
This commit is contained in:
Alexandre Aubin 2019-01-30 00:08:39 +01:00 committed by GitHub
commit 1497cf581d

View file

@ -26,6 +26,10 @@ app=$YNH_APP_INSTANCE_NAME
#=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
#=================================================
# Check machine architecture (in particular, we don't support ARM and 32bit machines)
[[ $(uname -m) == "x86_64" ]] || ynh_die "Sorry, but this app can only be installed on a x86, 64 bits machine :("
final_path=/var/www/$app
test ! -e "$final_path" || ynh_die "This path already contains a folder"