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

Check port availability

This commit is contained in:
src386 2015-08-10 17:34:50 +02:00
parent 90c24a1e16
commit 088b1ade9c
2 changed files with 7 additions and 1 deletions

1
TODO
View file

@ -1,4 +1,3 @@
- Change port ?
- SHA password
- URL rewriting
- Cache optimisation

View file

@ -15,6 +15,13 @@ if [[ ! $? -eq 0 ]]; then
exit 1
fi
# Check port availability
sudo yunohost app checkport $port;
if [[ ! $? -eq 0 ]]; then
echo -e "Port already in used";
exit 1
fi
sudo yunohost app setting movim admin -v $admin
sudo yunohost app setting movim public_site -v $public_site