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:
parent
90c24a1e16
commit
088b1ade9c
2 changed files with 7 additions and 1 deletions
1
TODO
1
TODO
|
@ -1,4 +1,3 @@
|
|||
- Change port ?
|
||||
- SHA password
|
||||
- URL rewriting
|
||||
- Cache optimisation
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue