Fix #64 Ensure php80 for RPM package

This commit is contained in:
Timothée Jaussoin 2023-01-10 11:34:21 +01:00
parent 2c231c96b7
commit c4fd916dc7
2 changed files with 6 additions and 15 deletions

View file

@ -1,7 +1,7 @@
#!/bin/sh
cd /opt/belledonne-communications/share/flexisip-account-manager/flexiapi/
scl enable rh-php73 "php artisan digest:clear-nonces 60"
scl enable rh-php73 "php artisan accounts:clear-api-keys 60"
scl enable rh-php73 "php artisan accounts:clear-accounts-tombstones 7 --apply"
scl enable rh-php73 "php artisan accounts:clear-unconfirmed 30 --apply"
php artisan digest:clear-nonces 60
php artisan accounts:clear-api-keys 60
php artisan accounts:clear-accounts-tombstones 7 --apply
php artisan accounts:clear-unconfirmed 30 --apply

View file

@ -118,11 +118,7 @@ cp httpd/flexisip-account-manager.conf "$RPM_BUILD_ROOT%{apache_conf_path}/"
ln -s %{env_config_file} %{env_symlink_file}
%if %{with deb}
php artisan key:generate
%else
scl enable rh-php73 "php artisan key:generate"
%endif
php artisan key:generate
fi
# Link it once more
@ -135,12 +131,7 @@ cp httpd/flexisip-account-manager.conf "$RPM_BUILD_ROOT%{apache_conf_path}/"
echo "sudo -su %{web_user}"
echo "You need to migrate the database to finish the setup:"
echo "%{web_user}$ cd %{opt_dir}/flexiapi/"
%if %{with deb}
echo %{web_user}$ php artisan migrate
%else
echo %{web_user}$ scl enable rh-php73 "php artisan migrate"
%endif
echo %{web_user}$ php artisan migrate
fi
%if %{without deb}