1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpldapadmin_ynh.git synced 2024-09-03 19:56:45 +02:00
phpldapadmin_ynh/scripts/install
eric_G b236d2c08c
Testing (#24)
* Add badges

* Upgrade to v.1.2.6.2

* Remove --phpversion

* Small fixes

* set permissions

* Fix linter warnings

* Set SVG badge

* Fix linter

* patch (#11)

* Add templates (#13)

* Add templates

* Update manifest.json

* Auto-update README

* Update check_process

* 1.2.6.3 (#16)

* 1.2.6.3

* Upgrade (#18)

* Upgrade

* Auto-update README

* Fix

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Version 2 (#21)

* v2

* Auto-update README

* v2

* fix

* Auto-update README

* Create change_url

* Update manifest.toml

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Auto-update README

* Update config.php.example

Close #20

* fix linter

* Update manifest.toml

* Auto-update README

* cleaning

* Update manifest.toml

* Update manifest.toml

* Auto-update README

---------

Co-authored-by: Yunohost-Bot <>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com>
2023-09-22 19:47:20 +02:00

46 lines
1.5 KiB
Bash
Executable file

#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=3
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring PHP-FPM..." --weight=3
# Create a dedicated php-fpm config
ynh_add_fpm_config
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
# MODIFY A CONFIG FILE
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/config.php.example" --destination="$install_dir/config/config.php"
chmod 644 $install_dir/config/config.php
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Installation of $app completed" --last