Mozilla_pre: Make Firefox profile customizable
This commit is contained in:
+2
-4
@@ -3,10 +3,8 @@
|
|||||||
.kdev4/*
|
.kdev4/*
|
||||||
client_software/.sync_*.db
|
client_software/.sync_*.db
|
||||||
client_software/setup_system.conf
|
client_software/setup_system.conf
|
||||||
config/setup_system.conf
|
config/*
|
||||||
config/*.bak
|
!config/README.md
|
||||||
config/skel.tar.zst
|
|
||||||
config/.sync_*.db
|
|
||||||
config.d/*.conf
|
config.d/*.conf
|
||||||
config.d/*.sys
|
config.d/*.sys
|
||||||
config.d/*.bak
|
config.d/*.bak
|
||||||
|
|||||||
@@ -21,6 +21,9 @@ from webdav3.client import Client
|
|||||||
#Variables
|
#Variables
|
||||||
thunderbird_tar = os.path.dirname(__file__) + '/thunderbird.tar.zst'
|
thunderbird_tar = os.path.dirname(__file__) + '/thunderbird.tar.zst'
|
||||||
firefox_tar = os.path.dirname(__file__) + '/firefox.tar.zst'
|
firefox_tar = os.path.dirname(__file__) + '/firefox.tar.zst'
|
||||||
|
#If defined, use another Profile for that Company
|
||||||
|
if 'PROFILE_FIREFOX_TAR_FILE' in environ:
|
||||||
|
firefox_tar=environ['PROFILE_FIREFOX_TAR_FILE']
|
||||||
firefoxhome_path = environ['HOME'] + "/.config/mozilla/firefox"
|
firefoxhome_path = environ['HOME'] + "/.config/mozilla/firefox"
|
||||||
firefoxhome_profile_src = os.path.dirname(__file__) + '/profiles_ff.ini'
|
firefoxhome_profile_src = os.path.dirname(__file__) + '/profiles_ff.ini'
|
||||||
firefoxhome_profile_dst = firefoxhome_path + '/profiles.ini'
|
firefoxhome_profile_dst = firefoxhome_path + '/profiles.ini'
|
||||||
|
|||||||
@@ -68,12 +68,18 @@ if [ "$EUID" -ne 0 ]; then
|
|||||||
export CLIENT_DATA_SYNC_DECLARE="$(declare -p CLIENT_DATA_SYNC)" # Do not remove
|
export CLIENT_DATA_SYNC_DECLARE="$(declare -p CLIENT_DATA_SYNC)" # Do not remove
|
||||||
#End of Sync Folder for nextcloud client
|
#End of Sync Folder for nextcloud client
|
||||||
|
|
||||||
#Firefox Profiles of the User
|
#Firefox Profiles
|
||||||
export PROFILE_FIREFOX_RESET_LOCAL="true" # Set this to wipe ~/.mozilla each time if you don't want users to setup their own firefox profile
|
export PROFILE_FIREFOX_RESET_LOCAL="true" # Set this to wipe ~/.mozilla each time if you don't want users to setup their own firefox profile
|
||||||
|
# Optional: own Firefox profile used for this company if given as default
|
||||||
|
# You may use any tar file, that contains a valid firefox profile set up to your companies need.
|
||||||
|
# As example look at 0020_nextcloud_mozilla_pre/firefox.tar.zst
|
||||||
|
# You should put it under e.g SYSCONFIGPATH and than use the filepath relative. e.g. "${SYSCONFIGPATH}/firefox.tar.zst"
|
||||||
|
export PROFILE_FIREFOX_TAR_FILE=""
|
||||||
|
#Mozilla profile paths on Nextcloud Server. Syncs your profiles to Nextcloud.
|
||||||
export PROFILE_FIREFOX_SRC="mozilla_profiles/firefox"
|
export PROFILE_FIREFOX_SRC="mozilla_profiles/firefox"
|
||||||
export PROFILE_FIREFOX_DST="${DECRYPTEDDATADIR}/firefox"
|
export PROFILE_FIREFOX_DST="${DECRYPTEDDATADIR}/firefox"
|
||||||
|
|
||||||
#Thunderbird Profiles
|
#Thunderbird Profiles to also be synced
|
||||||
export PROFILE_TB_SRC="mozilla_profiles/thunderbird"
|
export PROFILE_TB_SRC="mozilla_profiles/thunderbird"
|
||||||
export PROFILE_TB_DST="${DECRYPTEDDATADIR}/thunderbird"
|
export PROFILE_TB_DST="${DECRYPTEDDATADIR}/thunderbird"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user