mirror of
https://github.com/YunoHost-Apps/roundcube_ynh.git
synced 2024-09-03 20:16:28 +02:00
cleaning
This commit is contained in:
parent
813693d4b5
commit
57e8d5c04e
6 changed files with 15 additions and 24 deletions
|
@ -1,5 +0,0 @@
|
||||||
SOURCE_URL=https://github.com/roundcube/roundcubemail/releases/download/1.6.6/roundcubemail-1.6.6.tar.gz
|
|
||||||
SOURCE_SUM=40e4d7505b01f401e757f7439930ed96b1245ffc3863dd326fcf21e0e5847c74
|
|
||||||
SOURCE_SUM_PRG=sha256sum
|
|
||||||
SOURCE_FORMAT=tar.gz
|
|
||||||
SOURCE_IN_SUBDIR=true
|
|
|
@ -69,15 +69,15 @@ ram.runtime = "50M"
|
||||||
packages = [
|
packages = [
|
||||||
"mariadb-server",
|
"mariadb-server",
|
||||||
"php-pear",
|
"php-pear",
|
||||||
"php8.1-ldap",
|
"php8.2-ldap",
|
||||||
"php8.1-mysql",
|
"php8.2-mysql",
|
||||||
"php8.1-cli",
|
"php8.2-cli",
|
||||||
"php8.1-intl",
|
"php8.2-intl",
|
||||||
"php8.1-zip",
|
"php8.2-zip",
|
||||||
"php8.1-gd",
|
"php8.2-gd",
|
||||||
"php8.1-mbstring",
|
"php8.2-mbstring",
|
||||||
"php8.1-dom",
|
"php8.2-dom",
|
||||||
"php8.1-curl",
|
"php8.2-curl",
|
||||||
]
|
]
|
||||||
|
|
||||||
[resources.database]
|
[resources.database]
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Composer version
|
# Composer version
|
||||||
YNH_COMPOSER_VERSION=2.5.5
|
YNH_COMPOSER_VERSION=2.7.6
|
||||||
|
|
||||||
# Plugins version
|
# Plugins version
|
||||||
contextmenu_version=3.3.1
|
contextmenu_version=3.3.1
|
||||||
automatic_addressbook_version=v0.4.3
|
automatic_addressbook_version=v0.4.3
|
||||||
carddav_version=5.0.1
|
carddav_version=5.1.0
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# EXPERIMENTAL HELPERS
|
# EXPERIMENTAL HELPERS
|
||||||
|
|
|
@ -21,15 +21,11 @@ ynh_print_info --message="Declaring files to be backed up..."
|
||||||
ynh_backup --src_path="$install_dir"
|
ynh_backup --src_path="$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE NGINX CONFIGURATION
|
# SYSTEM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# BACKUP THE PHP-FPM CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -74,7 +74,7 @@ ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name
|
||||||
ynh_script_progression --message="Configuring Roundcube..." --weight=2
|
ynh_script_progression --message="Configuring Roundcube..." --weight=2
|
||||||
|
|
||||||
deskey=$(ynh_string_random --length=24)
|
deskey=$(ynh_string_random --length=24)
|
||||||
ynh_add_config --template="../conf/config.inc.php" --destination="$install_dir/config/config.inc.php"
|
ynh_add_config --template="config.inc.php" --destination="$install_dir/config/config.inc.php"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL ADDITIONAL PLUGINS
|
# INSTALL ADDITIONAL PLUGINS
|
||||||
|
|
|
@ -27,9 +27,9 @@ ynh_script_progression --message="Restoring the MySQL database..." --weight=5
|
||||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
|
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE PHP-FPM CONFIGURATION
|
# RESTORE SYSTEM CONFIGURATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weight=1
|
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue