mirror of
https://github.com/YunoHost-Apps/joomla_ynh.git
synced 2024-09-03 19:26:34 +02:00
Apply example_ynh
This commit is contained in:
parent
e433c1cb8a
commit
7e2d08508f
5 changed files with 31 additions and 43 deletions
37
README.md
37
README.md
|
@ -1,30 +1,11 @@
|
|||
# Joomla_ynh
|
||||
[](https://install-app.yunohost.org/?app=joomla)
|
||||
# Joomla for YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/example)  
|
||||
[](https://install-app.yunohost.org/?app=example)
|
||||
|
||||
> *This package allows you to install example 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.*
|
||||
|
||||
## Overview
|
||||
|
||||
Joomla! is an award-winning content management system https://www.joomla.org/ <br> <strong>Version:</strong> 4.0.6 <br><br>
|
||||
|
||||
<h2>Why Joomla?</h2>
|
||||
<p>Hundreds of developers have been improving Joomla! since the first version was released in 2005. This immense effort has made Joomla! very popular, easy to use, stable and secure. <strong>See for more details:</strong>https://www.joomla.org/3/</p><br>
|
||||
|
||||
<b>Note:</b>There is installer.php added for bypassing the web installation process. see https://github.com/joomla/joomla-cms/pull/2764
|
||||
|
||||
# Ldap configuration (For now you have to configure it youeself)
|
||||
Enable ldap plugin<br>
|
||||
Enter the following feilds:<br>
|
||||
**Host:** localhost<br>
|
||||
**Port**:389<br>
|
||||
**LdapV3:** Yes<br>
|
||||
**Authorisation Method:** Bind and search<br>
|
||||
**Base DN:** dc=yunohost,dc=org<br>
|
||||
**uid:** uid=[search]<br>
|
||||
**User's DN:** ou=users,dc=yunohost,dc=org<br>
|
||||
**Map Full Name:** displayname<br>
|
||||
**Map Email:** mail<br>
|
||||
**Map User ID:** uid<br>
|
||||
|
||||
# To-do
|
||||
- [X] Installation and remove script.
|
||||
- [ ] Ldap integration.
|
||||
- [ ] Make update script better for updation from sources.
|
||||
- [X] Backup and restore script.
|
||||
- [ ] Add php-fpm.ini and php-fpm.conf(for the red error message in admin panel).
|
||||
|
|
|
@ -10,6 +10,16 @@
|
|||
source ../settings/scripts/_common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# MANAGE SCRIPT FAILURE
|
||||
#=================================================
|
||||
|
||||
ynh_clean_setup () {
|
||||
true
|
||||
}
|
||||
# Exit if an error occurs during the execution of the script
|
||||
ynh_abort_if_errors
|
||||
|
||||
#=================================================
|
||||
# LOAD SETTINGS
|
||||
#=================================================
|
||||
|
|
|
@ -69,13 +69,6 @@ fi
|
|||
|
||||
#=================================================
|
||||
# STANDARD MODIFICATIONS
|
||||
#=================================================
|
||||
# STOP SYSTEMD SERVICE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Stopping a systemd service..."
|
||||
|
||||
ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# MODIFY URL IN NGINX CONF
|
||||
#=================================================
|
||||
|
@ -113,14 +106,6 @@ fi
|
|||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Starting a systemd service..."
|
||||
|
||||
# Start a systemd service
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
#=================================================
|
||||
|
|
|
@ -10,6 +10,16 @@
|
|||
source ../settings/scripts/_common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# MANAGE SCRIPT FAILURE
|
||||
#=================================================
|
||||
|
||||
ynh_clean_setup () {
|
||||
true
|
||||
}
|
||||
# Exit if an error occurs during the execution of the script
|
||||
ynh_abort_if_errors
|
||||
|
||||
#=================================================
|
||||
# LOAD SETTINGS
|
||||
#=================================================
|
||||
|
|
|
@ -21,6 +21,8 @@ path_url=$(ynh_app_setting_get --app=$app --key=path)
|
|||
admin=$(ynh_app_setting_get --app=$app --key=admin)
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||
db_user=$db_name
|
||||
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
|
|
Loading…
Add table
Reference in a new issue