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:
commit
3867b4d95b
2 changed files with 18 additions and 3 deletions
|
@ -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 .
|
||||
|
||||
PACKAGE NOT READY YET
|
||||
DO NOT USE
|
||||
Warning: BETA.
|
||||
|
||||
Current Movim version : 20150810.
|
||||
|
||||
**Changelog**
|
||||
|
||||
0.3b 2015-08-12
|
||||
- Check if admin exists
|
||||
- Check if admin password is not empty
|
||||
|
||||
0.2b 2015-08-12
|
||||
- Add php5-cli as required
|
||||
- Fixed a warning for sysvinit script installation
|
||||
|
|
|
@ -16,11 +16,23 @@ exit 1
|
|||
fi
|
||||
|
||||
# Check port availability
|
||||
sudo yunohost app checkport $port;
|
||||
sudo yunohost app checkport $port
|
||||
if [[ ! $? -eq 0 ]]; then
|
||||
exit 1
|
||||
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 public_site -v $public_site
|
||||
sudo yunohost app setting movim port -v $port
|
||||
|
|
Loading…
Reference in a new issue