mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
fixes
This commit is contained in:
parent
fd9ec9dd41
commit
f28c50b9c5
3 changed files with 3 additions and 1 deletions
|
@ -43,5 +43,6 @@ return [
|
||||||
'basepath' => '__INSTALL_DIR__',
|
'basepath' => '__INSTALL_DIR__',
|
||||||
'default_timezone' => '__TIMEZONE__',
|
'default_timezone' => '__TIMEZONE__',
|
||||||
'language' => '__LANGUAGE__',
|
'language' => '__LANGUAGE__',
|
||||||
|
'pidfile' => '__INSTALL_DIR__/daemon.pid',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
|
@ -12,7 +12,7 @@ StandardOutput=/var/log/__APP___/daemon.log
|
||||||
StandardError=syslog
|
StandardError=syslog
|
||||||
ExecStart=/usr/bin/php__PHPVERSION__ __INSTALL_DIR__/bin/daemon.php start
|
ExecStart=/usr/bin/php__PHPVERSION__ __INSTALL_DIR__/bin/daemon.php start
|
||||||
ExecStop=/usr/bin/php__PHPVERSION__ __INSTALL_DIR__/bin/daemon.php stop
|
ExecStop=/usr/bin/php__PHPVERSION__ __INSTALL_DIR__/bin/daemon.php stop
|
||||||
PIDFile=friendica/daemon.pid
|
PIDFile=__INSTALL_DIR__/daemon.pid
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
InaccessibleDirectories=/home /root /boot /opt /mnt /media
|
InaccessibleDirectories=/home /root /boot /opt /mnt /media
|
||||||
ReadOnlyDirectories=/etc /usr
|
ReadOnlyDirectories=/etc /usr
|
||||||
|
|
|
@ -70,6 +70,7 @@ ynh_script_progression --message="Updating a configuration file..." --weight=1
|
||||||
# fix the url if necessary (there should be no trailing slash)
|
# fix the url if necessary (there should be no trailing slash)
|
||||||
if [ -f "$install_dir/config/local.config.php" ] && ! grep -q -e "'url' => 'https://$domain'," "$install_dir/config/local.config.php"; then
|
if [ -f "$install_dir/config/local.config.php" ] && ! grep -q -e "'url' => 'https://$domain'," "$install_dir/config/local.config.php"; then
|
||||||
ynh_replace_string --match_string="'url' => 'https://.*'," --replace_string="'url' => 'https://$domain'," --target_file="$install_dir/config/local.config.php"
|
ynh_replace_string --match_string="'url' => 'https://.*'," --replace_string="'url' => 'https://$domain'," --target_file="$install_dir/config/local.config.php"
|
||||||
|
ynh_store_file_checksum --file="$install_dir/config/local.config.php"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue