Fix relay cache setup

This commit is contained in:
Shivam Mathur 2023-01-27 08:38:32 +05:30
parent 0f765070fa
commit d30ad8b184
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -81,10 +81,10 @@ enable_relay() {
if [ -e "$relay_ini" ]; then
init_relay_ini "$relay_ini"
if [ "$os" = "Linux" ]; then
sudo mv "$relay_ini" "${ini_dir:?}"/../mods-available/relay.ini
sudo cp "$relay_ini" "${ini_dir:?}"/../mods-available/relay.ini
sudo phpenmod -v "${version:?}" relay
else
sudo mv "${relay_ini}" "${scan_dir:?}"/60-relay.ini
sudo cp "${relay_ini}" "${scan_dir:?}"/60-relay.ini
fi
fi
}