mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
Fix linter
This commit is contained in:
parent
ed682bbe3c
commit
55fd23cd2a
4 changed files with 8 additions and 8 deletions
|
@ -14,7 +14,7 @@
|
||||||
"email": "anmol@datamol.org"
|
"email": "anmol@datamol.org"
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 3.5"
|
"yunohost": ">= 4.0.0"
|
||||||
},
|
},
|
||||||
"previous_maintainers": {
|
"previous_maintainers": {
|
||||||
"name": "aymhce",
|
"name": "aymhce",
|
||||||
|
|
|
@ -8,4 +8,4 @@
|
||||||
YNH_PHP_VERSION="7.3"
|
YNH_PHP_VERSION="7.3"
|
||||||
pkg_dependencies=""
|
pkg_dependencies=""
|
||||||
|
|
||||||
extra_php_dependencies="php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-cli php${YNH_PHP_VERSION}-imagick php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-pgsql php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-gd"
|
extra_php_dependencies="php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-cli php${YNH_PHP_VERSION}-imagick php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-gd"
|
||||||
|
|
|
@ -127,7 +127,7 @@ ynh_setup_source --dest_dir="$final_path"
|
||||||
cp -f "$final_path/.htaccess-dist" "$final_path/.htaccess"
|
cp -f "$final_path/.htaccess-dist" "$final_path/.htaccess"
|
||||||
|
|
||||||
# 2 - Addons
|
# 2 - Addons
|
||||||
sudo mkdir $final_path/addon
|
mkdir $final_path/addon
|
||||||
ynh_setup_source --dest_dir="$final_path/addon" --source_id="addons"
|
ynh_setup_source --dest_dir="$final_path/addon" --source_id="addons"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -143,7 +143,7 @@ ynh_add_nginx_config
|
||||||
|
|
||||||
# configure friendica
|
# configure friendica
|
||||||
config="$final_path/config/local.config.php"
|
config="$final_path/config/local.config.php"
|
||||||
sudo cp -f "$final_path/config/local-sample.config.php" $config
|
cp -f "$final_path/config/local-sample.config.php" $config
|
||||||
ynh_replace_string --match_string="your.mysqlhost.com" --replace_string="localhost" --target_file="$config"
|
ynh_replace_string --match_string="your.mysqlhost.com" --replace_string="localhost" --target_file="$config"
|
||||||
ynh_replace_string --match_string="mysqlusername" --replace_string="$db_name" --target_file="$config"
|
ynh_replace_string --match_string="mysqlusername" --replace_string="$db_name" --target_file="$config"
|
||||||
ynh_replace_string --match_string="mysqldatabasename" --replace_string="$db_name" --target_file="$config"
|
ynh_replace_string --match_string="mysqldatabasename" --replace_string="$db_name" --target_file="$config"
|
||||||
|
@ -187,8 +187,8 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||||
ynh_add_fpm_config --package="$extra_php_dependencies"
|
ynh_add_fpm_config --package="$extra_php_dependencies"
|
||||||
|
|
||||||
# 3 - some extra folders
|
# 3 - some extra folders
|
||||||
sudo mkdir -p "${final_path}/view/smarty3"
|
mkdir -p "${final_path}/view/smarty3"
|
||||||
sudo chmod -R 775 $final_path/view/smarty3
|
chmod -R 775 $final_path/view/smarty3
|
||||||
|
|
||||||
# Set up poller
|
# Set up poller
|
||||||
ynh_replace_string --match_string="__YNH_WWW_PATH__" --replace_string="$final_path" --target_file="../conf/poller-cron"
|
ynh_replace_string --match_string="__YNH_WWW_PATH__" --replace_string="$final_path" --target_file="../conf/poller-cron"
|
||||||
|
@ -210,7 +210,7 @@ ynh_store_file_checksum --file="$final_path/config/local.config.php"
|
||||||
# Run composer
|
# Run composer
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
php$phpversion bin/composer.phar install
|
php$phpversion bin/composer.phar install
|
||||||
sudo bin/console config system addon ldapauth
|
bin/console config system addon ldapauth
|
||||||
popd
|
popd
|
||||||
ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_name" <<< "INSERT INTO addon (id, name, version, installed, hidden, timestamp, plugin_admin) VALUES (NULL, 'ldapauth', '', '1', '0', UNIX_TIMESTAMP(), '0');"
|
ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_name" <<< "INSERT INTO addon (id, name, version, installed, hidden, timestamp, plugin_admin) VALUES (NULL, 'ldapauth', '', '1', '0', UNIX_TIMESTAMP(), '0');"
|
||||||
|
|
||||||
|
|
|
@ -180,7 +180,7 @@ cp "../conf/poller-cron" "/etc/cron.d/$app"
|
||||||
# Run composer
|
# Run composer
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
php$phpversion bin/console dbstructure update
|
php$phpversion bin/console dbstructure update
|
||||||
sudo bin/console config system addon ldapauth
|
bin/console config system addon ldapauth
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue