mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
fix
This commit is contained in:
parent
a539ddcd94
commit
72d4717bd9
2 changed files with 78 additions and 30 deletions
65
README.md
65
README.md
|
@ -3,21 +3,50 @@
|
||||||
[](https://dash.yunohost.org/appci/app/movim)  
|
[](https://dash.yunohost.org/appci/app/movim)  
|
||||||
[](https://install-app.yunohost.org/?app=movim)
|
[](https://install-app.yunohost.org/?app=movim)
|
||||||
|
|
||||||
Movim is a decentralized social network, written in PHP and HTML5 and based on the XMPP standard protocol : https://movim.eu .
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
|
||||||
It is recommended to use a "valid" certificate to use Movim, auto-signed is sometimes problematic. You might want to take a look a StartSSL or Let's Encrypt.
|
> *This package allows you to install Movim quickly and simply on a YunoHost server.
|
||||||
|
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
|
||||||
|
|
||||||
Provided Movim version: 0.18
|
## Overview
|
||||||
|
Movim is a decentralized social network, written in PHP and HTML5 and based on the XMPP standard protocol: https://movim.eu
|
||||||
|
|
||||||
Please read CHANGELOG.
|
**Shipped version:** 0.18
|
||||||
|
|
||||||
**Installation**
|
## Screenshots
|
||||||
|
|
||||||
yunohost app install https://github.com/movim/movim_ynh
|

|
||||||
|
|
||||||
**Upgrade**
|
## Demo
|
||||||
|
|
||||||
yunohost app upgrade movim -u https://github.com/movim/movim_ynh
|
* [Official demo](https://nl.movim.eu/?login)
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
How to configure this app: From an admin panel, a plain file with SSH, or any other way.
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
* Official documentation: Link to the official documentation of this app
|
||||||
|
* YunoHost documentation: If specific documentation is needed, feel free to contribute.
|
||||||
|
|
||||||
|
## YunoHost specific features
|
||||||
|
|
||||||
|
#### Multi-user support
|
||||||
|
|
||||||
|
* Are LDAP and HTTP auth supported?
|
||||||
|
* Can the app be used by multiple users?
|
||||||
|
|
||||||
|
#### Supported architectures
|
||||||
|
|
||||||
|
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/movim/)
|
||||||
|
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/movim/)
|
||||||
|
|
||||||
|
## Limitations
|
||||||
|
|
||||||
|
* Any known limitations.
|
||||||
|
|
||||||
|
## Additional information
|
||||||
|
|
||||||
**Options**
|
**Options**
|
||||||
|
|
||||||
|
@ -35,10 +64,22 @@ Please read CHANGELOG.
|
||||||
|
|
||||||
Username and password are defined during installation.
|
Username and password are defined during installation.
|
||||||
|
|
||||||
**Remove**
|
## Links
|
||||||
|
|
||||||
yunohost app remove movim
|
* Report a bug: https://github.com/YunoHost-Apps/movim_ynh/issues
|
||||||
|
* App website: https://movim.eu/
|
||||||
|
* Upstream app repository: https://github.com/movim/movim
|
||||||
|
* YunoHost website: https://yunohost.org/
|
||||||
|
|
||||||
**Help**
|
---
|
||||||
|
|
||||||
Just open an issue.
|
## Developer info
|
||||||
|
|
||||||
|
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/movim_ynh/tree/testing).
|
||||||
|
|
||||||
|
To try the testing branch, please proceed like that.
|
||||||
|
```
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/movim_ynh/tree/testing --debug
|
||||||
|
or
|
||||||
|
sudo yunohost app upgrade movim -u https://github.com/YunoHost-Apps/movim_ynh/tree/testing --debug
|
||||||
|
```
|
||||||
|
|
|
@ -139,14 +139,17 @@ ynh_store_file_checksum --file="$final_path/config/db.inc.php"
|
||||||
# Install PHP dependencies using composer
|
# Install PHP dependencies using composer
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
(
|
# (
|
||||||
cd "$final_path"
|
# cd "$final_path"
|
||||||
export COMPOSER_HOME=$final_path
|
# export COMPOSER_HOME=$final_path
|
||||||
curl -sS https://getcomposer.org/installer | php -- --install-dir="$final_path" \
|
# curl -sS https://getcomposer.org/installer | php -- --install-dir="$final_path" \
|
||||||
&& php composer.phar config --global discard-changes true --quiet \
|
# && php composer.phar config --global discard-changes true --quiet \
|
||||||
&& php composer.phar install --no-interaction --quiet
|
# && php composer.phar install --no-interaction --quiet
|
||||||
)
|
# )
|
||||||
|
|
||||||
|
pushd "$final_path" || ynh_die
|
||||||
|
composer install
|
||||||
|
popd || ynh_die
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -160,14 +163,16 @@ ynh_add_systemd_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# Set-up database and configuration
|
# Set-up database and configuration
|
||||||
#=================================================
|
#=================================================
|
||||||
|
cd "$final_path"
|
||||||
|
php composer.phar movim:migrate
|
||||||
|
|
||||||
(
|
# (
|
||||||
cd "$final_path"
|
# cd "$final_path"
|
||||||
php mud.php db --set
|
# php mud.php db --set
|
||||||
php mud.php config --loglevel=1 \
|
# php mud.php config --loglevel=1 \
|
||||||
--locale="$language" --timezone="$timezone" \
|
# --locale="$language" --timezone="$timezone" \
|
||||||
--username="$admin" --password="$password"
|
# --username="$admin" --password="$password"
|
||||||
)
|
# )
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
@ -176,10 +181,12 @@ ynh_add_systemd_config
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# TODO: use more strict permissions
|
# TODO: use more strict permissions
|
||||||
chown -R "$app":www-data "$final_path"
|
# chown -R "$app":www-data "$final_path"
|
||||||
find "${final_path}/" -type f -print0 | xargs -0 chmod 0644
|
# find "${final_path}/" -type f -print0 | xargs -0 chmod 0644
|
||||||
find "${final_path}/" -type d -print0 | xargs -0 chmod 0755
|
# find "${final_path}/" -type d -print0 | xargs -0 chmod 0755
|
||||||
chmod 400 "${final_path}/config/db.inc.php"
|
# chmod 400 "${final_path}/config/db.inc.php"
|
||||||
|
|
||||||
|
chown www-data $final_path && chown www-data $final_path/public && chmod u+rwx $final_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
Loading…
Add table
Reference in a new issue