Skip to content

Commit d663324

Browse files
issue #90 - change script directory to new core-scripts and adjust paths
1 parent e643434 commit d663324

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

image/scripts/os2borgerpc_setup.sh

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -112,45 +112,45 @@ figlet "=== About to run assorted OS2borgerPC scripts from the scripts repo ==="
112112
"./usr/local/bin/update_client.sh"
113113

114114
# Cloning script repository
115-
git clone --depth 1 https://github.com/OS2borgerPC/os2borgerpc-scripts.git
115+
git clone --depth 1 https://github.com/OS2borgerPC/os2borgerpc-core-scripts.git
116116

117117
# Cloned script directory
118-
SCRIPT_DIR="/os2borgerpc-scripts"
118+
SCRIPT_DIR="/scripts"
119119

120120
# Initially disable unattended upgrades to prevent problems with firstboot script
121-
"$SCRIPT_DIR/common/system/apt_periodic_control.sh" false
121+
"$SCRIPT_DIR/apt_periodic_control.sh" false
122122

123123
# Move unattended upgrades script to another folder so that firstboot can run it later
124-
mv "$SCRIPT_DIR/common/system/apt_periodic_control.sh" "/etc/os2borgerpc/"
124+
mv "$SCRIPT_DIR/apt_periodic_control.sh" "/etc/os2borgerpc/"
125125

126126
# Randomize checkins with server.
127-
"$SCRIPT_DIR/common/system/randomize_jobmanager.sh" 5
127+
"$SCRIPT_DIR/randomize_jobmanager.sh" 5
128128

129129
# Securing grub
130-
"$SCRIPT_DIR/common/system/grub_set_password.py" "$(pwgen -N 1 -s 12)"
130+
"$SCRIPT_DIR/grub_set_password.py" "$(pwgen -N 1 -s 12)"
131131

132132
# Setup a script to activate the desktop shortcuts for user on login
133133
# This must run after user has been created
134-
"$SCRIPT_DIR/os2borgerpc/udfases/desktop_activate_shortcuts.sh"
134+
"$SCRIPT_DIR/desktop_activate_shortcuts.sh"
135135

136136
# Block suspend, shut down and reboot and remove them from the menu
137137
#sed --in-place "/polkitd/d" "$SCRIPT_DIR/os2borgerpc/desktop/polkit_policy_shutdown_suspend.sh"
138-
"$SCRIPT_DIR/os2borgerpc/sikkerhed/polkit_policy_shutdown_suspend.sh" True True
138+
"$SCRIPT_DIR/polkit_policy_shutdown_suspend.sh" True True
139139

140140
# Remove lock from the menu
141-
"$SCRIPT_DIR/os2borgerpc/udfases/dconf_disable_lock_menu.sh" True
141+
"$SCRIPT_DIR/dconf_disable_lock_menu.sh" True
142142

143143
# Remove change user from the menu
144-
"$SCRIPT_DIR/os2borgerpc/udfases/dconf_disable_user_switching.sh" True
144+
"$SCRIPT_DIR/dconf_disable_user_switching.sh" True
145145

146146
# Block Gnome Remote Desktop
147-
"$SCRIPT_DIR/os2borgerpc/sikkerhed/dconf_disable_gnome_remote_desktop.sh" True
147+
"$SCRIPT_DIR/dconf_disable_gnome_remote_desktop.sh" True
148148

149149
# Remove user access to terminal
150-
"$SCRIPT_DIR/os2borgerpc/sikkerhed/protect_terminal.sh" False
150+
"$SCRIPT_DIR/protect_terminal.sh" False
151151

152152
# Remove user access to settings
153-
"$SCRIPT_DIR/os2borgerpc/sikkerhed/adjust_settings_access.sh" False
153+
"$SCRIPT_DIR/adjust_settings_access.sh" False
154154

155155
# Setup /etc/lightdm/lightdm.conf, which needs to exist before we can enable running scripts at login
156156
if [[ -f /etc/lightdm/lightdm.conf.os2borgerpc ]]
@@ -159,28 +159,28 @@ then
159159
fi
160160

161161
# Enable running scripts at login
162-
"$SCRIPT_DIR/os2borgerpc/udfases/lightdm_greeter_setup_scripts.sh" False
162+
"$SCRIPT_DIR/lightdm_greeter_setup_scripts.sh" False
163163

164164
# Include fix for rare LightDM startup error
165-
"$SCRIPT_DIR/os2borgerpc/os2borgerpc/lightdm_fix_boot_error.sh" True
165+
"$SCRIPT_DIR/lightdm_fix_boot_error.sh" True
166166

167167
# Set user as the default user
168-
"$SCRIPT_DIR/os2borgerpc/udfases/set_user_as_default_lightdm_user.sh" True
168+
"$SCRIPT_DIR/set_user_as_default_lightdm_user.sh" True
169169

170170
# Prevent future upgrade notifications
171-
"$SCRIPT_DIR/os2borgerpc/udfases/remove_new_release_message.sh"
171+
"$SCRIPT_DIR/remove_new_release_message.sh"
172172

173173
# Improve Firefox browser security
174-
"$SCRIPT_DIR/os2borgerpc/browser/firefox_global_policies.sh" https://borger.dk
174+
"$SCRIPT_DIR/firefox_global_policies.sh" https://borger.dk
175175

176176
# Correctly make Firefox the initial standard browser
177-
"$SCRIPT_DIR/os2borgerpc/browser/browser_set_default.sh" firefox_firefox
177+
"$SCRIPT_DIR/browser_set_default.sh" firefox_firefox
178178

179179
# Disable the run prompt
180-
"$SCRIPT_DIR/os2borgerpc/sikkerhed/dconf_run_prompt_toggle.sh" True
180+
"$SCRIPT_DIR/dconf_run_prompt_toggle.sh" True
181181

182182
# Install Okular and set it as default PDF reader, mostly because it can conveniently also edit PDFs
183-
"$SCRIPT_DIR/os2borgerpc/os2borgerpc/install_okular_and_set_as_standard_pdf_reader.sh" True
183+
"$SCRIPT_DIR/install_okular_and_set_as_standard_pdf_reader.sh" True
184184

185185
# Set background images on login screen and desktop
186186
# Multi user image uses a different image because the Danish one has Danish text on it
@@ -189,23 +189,23 @@ if [ "$LANG_ALL" ]; then
189189
else
190190
BG="/usr/share/backgrounds/os2bpc_default_desktop.svg"
191191
fi
192-
"$SCRIPT_DIR/os2borgerpc/desktop/dconf_desktop_background.sh" $BG
193-
"$SCRIPT_DIR/os2borgerpc/login/dconf_change_login_bg.sh" True /usr/share/backgrounds/os2bpc_default_login.png
192+
"$SCRIPT_DIR/dconf_desktop_background.sh" $BG
193+
"$SCRIPT_DIR/dconf_change_login_bg.sh" True /usr/share/backgrounds/os2bpc_default_login.png
194194

195195
# Make apt-get wait 5 min for dpkg lock
196-
"$SCRIPT_DIR/images/apt_get_config_set_dpkg_lock_timeout.sh" True
196+
"$SCRIPT_DIR/apt_get_config_set_dpkg_lock_timeout.sh" True
197197

198198
# Set fix-broken true by default in the apt-get configuration
199-
"$SCRIPT_DIR/images/apt_get_config_set_fix_broken.sh" True
199+
"$SCRIPT_DIR/apt_get_config_set_fix_broken.sh" True
200200

201201
# Hide libreoffice tip of the day
202-
"$SCRIPT_DIR/os2borgerpc/libreoffice/overwrite_libreoffice_config.sh" True False
202+
"$SCRIPT_DIR/overwrite_libreoffice_config.sh" True False
203203

204204
# Enable universal access menu by default
205-
"$SCRIPT_DIR/os2borgerpc/desktop/dconf_a11y.sh" True
205+
"$SCRIPT_DIR/dconf_a11y.sh" True
206206

207207
# Allow superuser to manage CUPS / change printer settings (and make changes via CUPS' web interface)
208-
"$SCRIPT_DIR/os2borgerpc/printer/allow_superuser_to_manage_cups.sh"
208+
"$SCRIPT_DIR/allow_superuser_to_manage_cups.sh"
209209

210210
# Remove cloned script repository
211211
rm --recursive "$SCRIPT_DIR"

0 commit comments

Comments
 (0)