• postit.js should save the database in the data directory

    From Fernando Toledo@1:103/705 to GitLab issue in main/sbbs on Tue Apr 20 23:55:10 2021
    open https://gitlab.synchro.net/main/sbbs/-/issues/253

    Currently postit.js resides in the exec directory and the code uses the same as rootdir to save the databases (.dat and .his) ```var security_required=argv[1]; //SECOND PASSED ARGUMENT FOR SECURITY LEVEL REQUIRED TO POSTvar root_name=argv[0]; //ROOT DATAFILE NAME, USED TO SEPARATE INSTANCES OF THE PROGRAMvar root_dir;try { barfitty.barf(barf); } catch(e) { root_dir = e.fileName; }root_dir = root_dir.replace(/[^\/\\]*$/,'');var current=new MessageList(root_dir,root_name,".dat");var history=new MessageList(root_dir,root_name,".his");```I think it is better if you can configure (maybe via modopts.ini) the path where they should be saved or at least use the system.data_dir directory directly.thanks!
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to GitLab note in main/sbbs on Wed Apr 21 08:40:53 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/253#note_1946

    If implemented, it'd be good to add a task to update.js to migrate existing data files over to data/ while you're at it.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From m j@1:103/705 to GitLab note in main/sbbs on Wed Apr 21 12:06:59 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/253#note_1947

    I moved the script to the xtrn folder. The script itself already advises users to move it to its own folder in sbbs\xtrn\Given that the data and history filenames are specified at runtime, it would be a disproportionate amount of effort to locate and move these files via the update script, and users should do this manually, if there are any users.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From m j@1:103/705 to GitLab issue in main/sbbs on Wed Apr 21 12:07:02 2021
    close https://gitlab.synchro.net/main/sbbs/-/issues/253
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)