mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
remove trailing \n
This commit is contained in:
parent
32a74858c6
commit
3dece1f6ed
1 changed files with 2 additions and 2 deletions
|
@ -84,14 +84,14 @@ fi
|
|||
# add the path to the pidfile if missing
|
||||
if [ -f "$install_dir/config/local.config.php" ] && ! grep -q -e "pidfile" "$install_dir/config/local.config.php"; then
|
||||
ynh_print_info --message="Patching the Friendica config file: add the PID file path for the daemon..."
|
||||
ynh_replace_string --match_string="'basepath' => '$install_dir'," --replace_string="'basepath' => '$install_dir',\n 'pidfile' => '$install_dir/daemon.pid',\n" --target_file="$install_dir/config/local.config.php"
|
||||
ynh_replace_string --match_string="'basepath' => '$install_dir'," --replace_string="'basepath' => '$install_dir',\n 'pidfile' => '$install_dir/daemon.pid'," --target_file="$install_dir/config/local.config.php"
|
||||
ynh_store_file_checksum --file="$install_dir/config/local.config.php"
|
||||
fi
|
||||
|
||||
# add log path to the config
|
||||
if [ -f "$install_dir/config/local.config.php" ] && ! grep -q -e "logfile" "$install_dir/config/local.config.php"; then
|
||||
ynh_print_info --message="Patching the Friendica config file: add the path for the Friendica logfile..."
|
||||
ynh_replace_string --match_string="'basepath' => '$install_dir'," --replace_string="'basepath' => '$install_dir',\n 'logfile' => '/var/log/friendica/friendica.log',\n 'loglevel' => 'notice',\n" --target_file="$install_dir/config/local.config.php"
|
||||
ynh_replace_string --match_string="'basepath' => '$install_dir'," --replace_string="'basepath' => '$install_dir',\n 'logfile' => '/var/log/friendica/friendica.log',\n 'loglevel' => 'notice'," --target_file="$install_dir/config/local.config.php"
|
||||
ynh_store_file_checksum --file="$install_dir/config/local.config.php"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue