mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
regenconf: in apt/php stuff, don't try to upgrade-alternatives if the default PHP version ain't available anymore (similar to commit e24ddd29
)
This commit is contained in:
parent
8a43b04614
commit
18e034df8a
1 changed files with 4 additions and 1 deletions
|
@ -68,7 +68,10 @@ do_post_regen() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure php7.4 is the default version when using php in cli
|
# Make sure php7.4 is the default version when using php in cli
|
||||||
update-alternatives --set php /usr/bin/php7.4
|
if test -e /usr/bin/php$YNH_DEFAULT_PHP_VERSION
|
||||||
|
then
|
||||||
|
update-alternatives --set php /usr/bin/php$YNH_DEFAULT_PHP_VERSION
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_$1_regen ${@:2}
|
do_$1_regen ${@:2}
|
||||||
|
|
Loading…
Add table
Reference in a new issue