Learn about Centmin Mod LEMP Stack today
Become a Member

[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

    154
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +65
    Local Time:
    9:30 AM
    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

     
  2. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:30 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    whoops, nice catch - definitely a bug which just fixed in updated 123.09beta01 :D
     
  3. jcat

    jcat Member

    154
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +65
    Local Time:
    9:30 AM
    Thanks!
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:30 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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