mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
Getting close to release
This commit is contained in:
parent
dc923e8b70
commit
d6ac2bb3a5
3 changed files with 11 additions and 4 deletions
|
@ -1,4 +1,9 @@
|
|||
Movim for Yunohost.
|
||||
==========
|
||||
|
||||
Movim is a decentralized social network, written in PHP and HTML5 and based on the XMPP standard protocol.
|
||||
|
||||
Current Movim version : 20150731.
|
||||
|
||||
WIP !!!
|
||||
APP NOT READY YET !!!
|
||||
|
|
|
@ -18,7 +18,7 @@ location PATHTOCHANGE {
|
|||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
}
|
||||
|
||||
location ~ ^PATHTOCHANGE/ws/ {
|
||||
location PATHTOCHANGE/ws/ {
|
||||
proxy_pass http://localhost:8080/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
# Retrieve arguments
|
||||
domain=$1
|
||||
path=$2
|
||||
public_site=$3
|
||||
admin=$3
|
||||
public_site=$4
|
||||
|
||||
# Check domain/path availability
|
||||
sudo yunohost app checkurl $domain$path -a movim
|
||||
|
@ -11,6 +12,7 @@ if [[ ! $? -eq 0 ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
sudo yunohost app setting movim admin -v $admin
|
||||
sudo yunohost app setting movim public_site -v $public_site
|
||||
|
||||
# Generate random password
|
||||
|
@ -44,7 +46,7 @@ sudo sed -i "s/yhdb/$db_user/g" $final_path/config/db.inc.php
|
|||
|
||||
# Populate Movim database
|
||||
sudo su -c "cd $final_path && php mud.php db set" -s /bin/sh www-data
|
||||
#sudo yunohost app addaccess movim -u $admin
|
||||
sudo yunohost app addaccess movim -u $admin
|
||||
|
||||
# Copy init script if Wheezy
|
||||
sudo cp ../conf/movim.init /etc/init.d/movim
|
||||
|
@ -64,7 +66,7 @@ if [ $public_site = "No" ];
|
|||
then
|
||||
sudo yunohost app setting movim protected_uris -v "/admin,/index.php"
|
||||
else
|
||||
sudo yunohost app setting movim protected_uris -v "/admin/index.php,/admin/logs_studs.txt,/scripts"
|
||||
sudo yunohost app setting movim protected_uris -v "/admin,/index.php,?q=admin"
|
||||
fi
|
||||
sudo yunohost app ssowatconf
|
||||
|
||||
|
|
Loading…
Reference in a new issue