Learn about Centmin Mod LEMP Stack today
Register Now

[Solved] Accidentally added "pure-pw userdel" into /root/tools/wp_updater_${vhostname}.sh

Discussion in 'Bug Reports' started by jcat, Feb 18, 2017.

  1. jcat

    jcat Member

    53
    13
    8
    Jun 21, 2015
    Ratings:
    +20
    Local Time:
    9:17 PM
    I noticed a few people complaining of their FTP login randomly failing, I've had to manually add the user back, I then recently noticed this in:

    /root/tools/wp_updater_${vhostname}.sh

    Code:
    pure-pw userdel $ftpuser >/dev/null 2>&1
    Was this an accident? I see the commit here:

    update inc/wpsetup.inc add pure-ftpd user removal to wordpress uninst… · centminmod/centminmod@ec36802 · GitHub

    but shouldn't this of been added to

    /root/tools/wp_uninstall_${vhostname}.sh
     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    30,838
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    12:17 PM
    Nginx 1.13.x
    MariaDB 5.5
    whoops, nice catch - definitely a bug which just fixed in updated 123.09beta01 :D
     
  3. jcat

    jcat Member

    53
    13
    8
    Jun 21, 2015
    Ratings:
    +20
    Local Time:
    9:17 PM
    Thanks!
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,838
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    12:17 PM
    Nginx 1.13.x
    MariaDB 5.5
    You should be able to mass correct existing /root/tools/wp_updater_yourdomains.sh scripts using this single command line

    Code (Text):
    for f in $(find /root/tools/ -type f -name "wp_updater_*"); do grep -w 'pure-pw' $f && sed -i "/pure-pw/d" $f; done
    
     
    • Like Like x 1