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:
parent
72651f559f
commit
34ae5082fa
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue