Skip to content

Commit

Permalink
- Reorder chown and chmod calls
Browse files Browse the repository at this point in the history
- Remove excess new line
  • Loading branch information
ngetahun committed Nov 22, 2023
1 parent 007bc0e commit b16fac6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion package/files/update_rmt_app_dir_permissions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ for secretFile in $secret_key_files; do
file_path="$app_dir/$secretFile"
if [[ -e $file_path ]]; then
if [[ "$(stat -c "%U %G" $file_path)" == "root root" ]]; then
chown -h root:nginx $file_path
chmod 0640 $file_path
chown -h root:nginx $file_path
fi
fi

Expand Down
1 change: 0 additions & 1 deletion package/obs/rmt-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ if [ ! -e %{_datadir}/rmt/public/repo ]; then
ln -ns %{_sharedstatedir}/rmt/public/repo %{_datadir}/rmt/public/repo
fi


if [ ! -e %{_datadir}/rmt/public/suma ]; then
ln -ns %{_sharedstatedir}/rmt/public/suma %{_datadir}/rmt/public/suma
fi
Expand Down

0 comments on commit b16fac6

Please sign in to comment.