chore(rpm-ostree): Use /usr/lib/ directory instead of /etc/ for optfix service
This commit is contained in:
parent
ec6a52d583
commit
719fd97cad
1 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ fi
|
|||
get_json_array OPTFIX 'try .["optfix"][]' "$1"
|
||||
if [[ ${#OPTFIX[@]} -gt 0 ]]; then
|
||||
LIB_EXEC_DIR="/usr/libexec/bluebuild"
|
||||
SYSTEMD_DIR="/etc/systemd/system"
|
||||
SYSTEMD_DIR="/usr/lib/systemd/system"
|
||||
MODULE_DIR="/tmp/modules/rpm-ostree"
|
||||
|
||||
if ! [ -x "${LIB_EXEC_DIR}/optfix.sh" ]; then
|
||||
|
|
@ -54,7 +54,7 @@ if [[ ${#OPTFIX[@]} -gt 0 ]]; then
|
|||
|
||||
if ! [ -f "${SYSTEMD_DIR}/bluebuild-optfix.service" ]; then
|
||||
cp "${MODULE_DIR}/bluebuild-optfix.service" "${SYSTEMD_DIR}/"
|
||||
systemctl enable bluebuild-optfix.service
|
||||
systemctl --system enable bluebuild-optfix.service
|
||||
fi
|
||||
|
||||
echo "Creating symlinks to fix packages that install to /opt"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue