Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2024-06-20 14:40:05 +09:00
parent da550b73de
commit 764f7fa139
1 changed files with 6 additions and 5 deletions

View File

@ -76,10 +76,10 @@ def install_librewolf_browser():
) )
file_path = '/etc/apt/sources.list.d/librewolf.sources' file_path = '/etc/apt/sources.list.d/librewolf.sources'
os.system('sudo apt update && ' os.system('apt update && '
'sudo apt install -y wget gnupg lsb-release apt-transport-https ca-certificates') 'apt install -y wget gnupg lsb-release apt-transport-https ca-certificates')
os.system('wget -O- https://deb.librewolf.net/keyring.gpg | ' 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: try:
with open(file_path, 'w', encoding='utf-8') as f: with open(file_path, 'w', encoding='utf-8') as f:
f.write(content) f.write(content)
@ -88,8 +88,8 @@ def install_librewolf_browser():
print(f"Permission denied. Please run this script with " print(f"Permission denied. Please run this script with "
f"appropriate permissions to write to {file_path}.") f"appropriate permissions to write to {file_path}.")
return return
os.system('sudo apt update') os.system('apt update')
os.system('sudo apt install librewolf -y') os.system('apt install librewolf -y')
print("Browser installed!") print("Browser installed!")
else: else:
print("No builds were met not installed") 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/kumo')
os.system('chmod 755 /usr/local/bin/welcome') os.system('chmod 755 /usr/local/bin/welcome')
os.system('chmod 755 /usr/bin/install-peppermint') os.system('chmod 755 /usr/bin/install-peppermint')
os.system('chmod 755 /opt/pepconf/*')
# Set permissions on the Python libs # 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')
os.system('chmod 755 -R /usr/lib/python3/dist-packages/tendo-0.3.0.dist-info') os.system('chmod 755 -R /usr/lib/python3/dist-packages/tendo-0.3.0.dist-info')