Skip to content

Commit

Permalink
fedora: simplify distro_setup and avoid proot warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sylirre committed Oct 25, 2023
1 parent 45c4edc commit 6649dd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion distro-build/fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ write_plugin() {
distro_setup() {
${TAB}# Fix environment variables on login or su.
${TAB}run_proot_cmd authselect opt-out
${TAB}echo "session required pam_env.so readenv=1" | run_proot_cmd tee -a /etc/pam.d/system-auth >/dev/null
${TAB}echo "session required pam_env.so readenv=1" >> ./etc/pam.d/system-auth
}
EOF
}
2 changes: 1 addition & 1 deletion distro-plugins/fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ TARBALL_SHA256['x86_64']="167732ad9389523ca88ca9fdba470413322be15b3110845fa865e1
distro_setup() {
# Fix environment variables on login or su.
run_proot_cmd authselect opt-out
echo "session required pam_env.so readenv=1" | run_proot_cmd tee -a /etc/pam.d/system-auth >/dev/null
echo "session required pam_env.so readenv=1" >> ./etc/pam.d/system-auth
}

0 comments on commit 6649dd6

Please sign in to comment.