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

Merge pull request #3 from src386/dev

add admin and password verifications
This commit is contained in:
src386 2015-08-12 14:43:27 +02:00
commit 3867b4d95b
2 changed files with 18 additions and 3 deletions

View file

@ -3,13 +3,16 @@ Movim for Yunohost.
Movim is a decentralized social network, written in PHP and HTML5 and based on the XMPP standard protocol : https://movim.eu . Movim is a decentralized social network, written in PHP and HTML5 and based on the XMPP standard protocol : https://movim.eu .
PACKAGE NOT READY YET Warning: BETA.
DO NOT USE
Current Movim version : 20150810. Current Movim version : 20150810.
**Changelog** **Changelog**
0.3b 2015-08-12
- Check if admin exists
- Check if admin password is not empty
0.2b 2015-08-12 0.2b 2015-08-12
- Add php5-cli as required - Add php5-cli as required
- Fixed a warning for sysvinit script installation - Fixed a warning for sysvinit script installation

View file

@ -16,11 +16,23 @@ exit 1
fi fi
# Check port availability # Check port availability
sudo yunohost app checkport $port; sudo yunohost app checkport $port
if [[ ! $? -eq 0 ]]; then if [[ ! $? -eq 0 ]]; then
exit 1 exit 1
fi fi
# Check user availability
sudo yunohost user info $admin
if [[ ! $? -eq 0 ]]; then
exit 1
fi
# Check password not empty
if [[ -z "$password" ]]; then
printf("Error empty admin password, aborting");
exit 1
fi
sudo yunohost app setting movim admin -v $admin sudo yunohost app setting movim admin -v $admin
sudo yunohost app setting movim public_site -v $public_site sudo yunohost app setting movim public_site -v $public_site
sudo yunohost app setting movim port -v $port sudo yunohost app setting movim port -v $port