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

    From Fernando Toledo@VERT to GitLab issue in main/sbbs on Wed Apr 21 06: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 POST
    var root_name=argv[0]; //ROOT DATAFILE NAME, USED TO SEPARATE INSTANCES OF THE PROGRAM
    var 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!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to GitLab note in main/sbbs on Wed Apr 21 15: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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From m j@VERT to GitLab note in main/sbbs on Wed Apr 21 19: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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From m j@VERT to GitLab issue in main/sbbs on Wed Apr 21 19:07:02 2021
    close https://gitlab.synchro.net/main/sbbs/-/issues/253

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net