From 764f7fa139a00f291430d6cecd4fbdb3a7c9431c Mon Sep 17 00:00:00 2001 From: debianpepper Date: Thu, 20 Jun 2024 14:40:05 +0900 Subject: [PATCH] Updated: Signed-off-by: debianpepper --- iso_configs/pylibraries/pepperpy/hooks.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/iso_configs/pylibraries/pepperpy/hooks.py b/iso_configs/pylibraries/pepperpy/hooks.py index e75c2681..905a62e4 100644 --- a/iso_configs/pylibraries/pepperpy/hooks.py +++ b/iso_configs/pylibraries/pepperpy/hooks.py @@ -76,10 +76,10 @@ def install_librewolf_browser(): ) file_path = '/etc/apt/sources.list.d/librewolf.sources' - os.system('sudo apt update && ' - 'sudo apt install -y wget gnupg lsb-release apt-transport-https ca-certificates') + os.system('apt update && ' + 'apt install -y wget gnupg lsb-release apt-transport-https ca-certificates') os.system('wget -O- https://deb.librewolf.net/keyring.gpg | ' - 'sudo gpg --dearmor -o /usr/share/keyrings/librewolf.gpg') + 'gpg --dearmor -o /usr/share/keyrings/librewolf.gpg') try: with open(file_path, 'w', encoding='utf-8') as f: f.write(content) @@ -88,8 +88,8 @@ def install_librewolf_browser(): print(f"Permission denied. Please run this script with " f"appropriate permissions to write to {file_path}.") return - os.system('sudo apt update') - os.system('sudo apt install librewolf -y') + os.system('apt update') + os.system('apt install librewolf -y') print("Browser installed!") else: print("No builds were met not installed") @@ -191,6 +191,7 @@ def setting_permissions(): os.system('chmod 755 /usr/local/bin/kumo') os.system('chmod 755 /usr/local/bin/welcome') os.system('chmod 755 /usr/bin/install-peppermint') + os.system('chmod 755 /opt/pepconf/*') # Set permissions on the Python libs os.system('chmod 755 -R /usr/lib/python3/dist-packages/tendo') os.system('chmod 755 -R /usr/lib/python3/dist-packages/tendo-0.3.0.dist-info')