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

Add port availability checking.

This commit is contained in:
Moul 2016-02-03 16:41:20 +01:00
parent 72651f559f
commit 34ae5082fa

View file

@ -13,6 +13,12 @@ if [[ ! $? -eq 0 ]]; then
exit 1
fi
# Check port availability
sudo yunohost app checkport 8081
if [[ ! $? -eq 0 ]]; then
exit 1
fi
# Copy files to the right place
final_path=/var/www/$app
sudo mkdir -p $final_path