Skip to content

Commit

Permalink
Merge pull request #6100 from BOINC/vko_linux_package_generate_random…
Browse files Browse the repository at this point in the history
…_password_by_default

[linux] create default password in gui_rpc_auth.cfg file
  • Loading branch information
AenBleidd authored Feb 21, 2025
2 parents ecc3330 + 08fd4d0 commit 9bca14f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ jobs:
ln -s ${BOINCDIR}/global_prefs_override.xml /etc/boinc-client/global_prefs_override.xml
fi
if [ ! -e ${BOINCDIR}/gui_rpc_auth.cfg ] ; then
echo \"\" > ${BOINCDIR}/gui_rpc_auth.cfg
echo $(head -c 20 /dev/urandom | sha1sum | awk '{print $1}') > ${BOINCDIR}/gui_rpc_auth.cfg
fi
if [ ! -e /etc/boinc-client/gui_rpc_auth.cfg ] ; then
ln -s ${BOINCDIR}/gui_rpc_auth.cfg /etc/boinc-client/gui_rpc_auth.cfg
Expand Down
2 changes: 1 addition & 1 deletion packages/deb/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ if [ ! -e /etc/boinc-client/global_prefs_override.xml ] ; then
fi

if [ ! -e ${BOINCDIR}/gui_rpc_auth.cfg ] ; then
echo "" > ${BOINCDIR}/gui_rpc_auth.cfg
echo "$(head -c 20 /dev/urandom | sha1sum | awk '{print $1}')" > ${BOINCDIR}/gui_rpc_auth.cfg
fi

if [ ! -e /etc/boinc-client/gui_rpc_auth.cfg ] ; then
Expand Down

0 comments on commit 9bca14f

Please sign in to comment.