mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
php73_to_php74: another search&replace for synapse
This commit is contained in:
parent
97e17bbddb
commit
f0a01ba25d
1 changed files with 12 additions and 0 deletions
|
@ -17,6 +17,10 @@ NEWPHP_POOLS = "/etc/php/7.4/fpm/pool.d"
|
|||
OLDPHP_SOCKETS_PREFIX = "/run/php/php7.3-fpm"
|
||||
NEWPHP_SOCKETS_PREFIX = "/run/php/php7.4-fpm"
|
||||
|
||||
# Because of synapse é_è
|
||||
OLDPHP_SOCKETS_PREFIX2 = "/run/php7.3-fpm"
|
||||
NEWPHP_SOCKETS_PREFIX2 = "/run/php7.4-fpm"
|
||||
|
||||
MIGRATION_COMMENT = (
|
||||
"; YunoHost note : this file was automatically moved from {}".format(OLDPHP_POOLS)
|
||||
)
|
||||
|
@ -50,6 +54,10 @@ class MyMigration(Migration):
|
|||
OLDPHP_SOCKETS_PREFIX, NEWPHP_SOCKETS_PREFIX, dest
|
||||
)
|
||||
os.system(c)
|
||||
c = "sed -i -e 's@{}@{}@g' {}".format(
|
||||
OLDPHP_SOCKETS_PREFIX2, NEWPHP_SOCKETS_PREFIX2, dest
|
||||
)
|
||||
os.system(c)
|
||||
|
||||
# Also add a comment that it was automatically moved from php7.3
|
||||
# (for human traceability and backward migration)
|
||||
|
@ -69,6 +77,10 @@ class MyMigration(Migration):
|
|||
OLDPHP_SOCKETS_PREFIX, NEWPHP_SOCKETS_PREFIX, nf
|
||||
)
|
||||
os.system(c)
|
||||
c = "sed -i -e 's@{}@{}@g' {}".format(
|
||||
OLDPHP_SOCKETS_PREFIX2, NEWPHP_SOCKETS_PREFIX2, nf
|
||||
)
|
||||
os.system(c)
|
||||
|
||||
os.system(
|
||||
"rm /etc/logrotate.d/php7.3-fpm"
|
||||
|
|
Loading…
Add table
Reference in a new issue