File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
scriptmodules/supplementary Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ function install_scripts_usbromservice() {
46
46
local dest
47
47
for file in " $md_data /" * ; do
48
48
dest=" /etc/usbmount/mount.d/${file##*/ } "
49
- sed " s/USERTOBECHOSEN /$__user /g" " $file " > " $dest "
49
+ sed -e " s/USER /$__user /g " -e " s/GROUP/ $__group /g" " $file " > " $dest "
50
50
chmod +x " $dest "
51
51
done
52
52
}
Original file line number Diff line number Diff line change 9
9
#
10
10
11
11
# # config / defaults
12
- user=" USERTOBECHOSEN"
12
+ user=" USER"
13
+ group=" GROUP"
13
14
14
15
home=" $( eval echo ~ $user ) "
15
16
rootdir=" /opt/retropie"
@@ -68,7 +69,7 @@ find "$retropie_path/roms" -mindepth 1 -maxdepth 1 -type d -printf "$usb_path/ro
68
69
for dir in roms BIOS; do
69
70
log info " Syncing $dir ..."
70
71
log_cmd rsync -rtu --exclude ' ._*' --max-delete=-1 " $usb_path /$dir " " $retropie_path /"
71
- chown -R $user : $user " $retropie_path /$dir "
72
+ chown -R " $user " : " $group " " $retropie_path /$dir "
72
73
done
73
74
74
75
log info " Syncing configs ..."
@@ -85,7 +86,7 @@ for from in $(find "$usb_path_to_rp/" -mindepth 1 -maxdepth 1); do
85
86
to=${path_mapping[$from_bn]}
86
87
if [[ -n " $to " ]]; then
87
88
log_cmd rsync -rtu --exclude ' ._*' --max-delete=-1 " $from /" " $to /"
88
- chown -R $user : $user " $to "
89
+ chown -R " $user " : " $group " " $to "
89
90
fi
90
91
done
91
92
Original file line number Diff line number Diff line change 10
10
#
11
11
12
12
# # config / defaults
13
- user=" USERTOBECHOSEN "
13
+ user=" USER "
14
14
15
15
home=" $( eval echo ~ $user ) "
16
16
retropie_path=" $home /RetroPie"
You can’t perform that action at this time.
0 commit comments