Skip to content

Commit afdd313

Browse files
committed
reflect changes for overwork of proftpd sync configuration
1 parent e775225 commit afdd313

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules.available/60_librarybox_ftpsync.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ librarybox_ftpsync_config_file="librarybox_ftpsync.txt"
1717

1818
# FTP configuration is currently located in the hook
1919
#librarybox_config=/opt/piratebox/conf/piratebox.conf
20-
ftp_config=/opt/piratebox/conf/ftp/ftp.conf
20+
ftp_config=/opt/piratebox/conf/hook_custom.conf
2121

2222
# Read configuration out of the system and save it to librarybox_ftpsync_system_config depending on the
2323
# parameter
2424
func_read_system_config_librarybox_ftpsync() {
2525
local path=$1 ; shift
2626

2727
echo "Extracting FTP-Sync parameter from $ftp_config"
28-
config_line=$(grep ENABLE_SYNC=\" $ftp_config )
28+
config_line=$(grep FTP_SYNC_ENABLED=\" $ftp_config )
2929
#extract value
30-
config_line=${config_line#ENABLE_SYNC=\"}
30+
config_line=${config_line#FTP_SYNC_ENABLED=\"}
3131
config_value=${config_line%\"}
3232

3333
echo $config_value > $path/$librarybox_ftpsync_config_file
@@ -40,7 +40,7 @@ func_set_system_config_librarybox_ftpsync(){
4040
local old_value=$1; shift
4141

4242
echo "Changing ftp-sync access for LibraryBox"
43-
sed "s|ENABLE_SYNC=\"$old_value\"|ENABLE_SYNC=\"$value\"|" -i $ftp_config
43+
sed "s|FTP_SYNC_ENABLED=\"$old_value\"|FTP_SYNC_ENABLED=\"$value\"|" -i $ftp_config
4444

4545
}
4646

0 commit comments

Comments
 (0)