mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 01:58:07 +00:00
Fix #64 Ensure php80 for RPM package
This commit is contained in:
parent
2c231c96b7
commit
c4fd916dc7
2 changed files with 6 additions and 15 deletions
|
|
@ -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
|
||||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue