What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

Discussion Possible bug in pgmove.sh

beats

Full Member
Staff
PG Version
8.6.3
Mount Type
Move Unencrypted
Server Type
Remote - Dedicated Server
Hi
I have noticed PGMOVE does not appear to be removing empty directories in the latest version.

The latest commit changed to to:
Bash:
find "{{hdpath}}/move/*" -type d -mmin +2 -empty -exec rm -rf {} \;
Now if I run it without the -exec to test you get:
Code:
find: ‘/mnt/move/*’: No such file or directory
I need to have a gander at find switches to see how to fix it but I thought I would report it before going to bed.

Cheers
 

captngimpy

Senior Member
Staff
I believe it has to do with the "{{hdpath}}/move/*" adding in the *. Try testing with the * removed and see if that works.
 
M

MrDoob

Guest
From :

Bash:
find "{{hdpath}}/move/*" -type d -mmin +2 -empty -exec rm -rf {} \;
To

Bash:
find "{{hdpath}}/move/" -type d -mmin +2 -empty -exec rm -rf {} \;
The " * " is wrong.
Remove it :)

after removing the *

Stop first the service ; the edit the file .
then start the service .

Dont edit first the file and restart the service .

You must stop the service first , if you dont do it, you have the service double running. This made fails .
 

captngimpy

Senior Member
Staff
Well thats good info to know! I have been editing then using either service pgblitz restart or stop then start.

Thanks
 

beats

Full Member
Staff
Thanks yeah I thought the * was the problem, I was just heading to bed when I spotted it and I was too tired to boot a vm and test.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads


Development Donations

 

Top NZB NewsGroups!

Members - Up To a 58% Discount!

Trending

Online statistics

Members online
5
Guests online
88
Total visitors
93
Top