Mph,

configure.pl should update the value of $useFHS when it does the
installation.  Did you install from Github using makeDist then configure.pl?
Or did you manually copy the files?

I noticed in github, backuppc3 lib/BackupPC/Lib.pm has $useFHS = 1, while
master (v4) has $useFHS = 0.  While that shouldn't matter (since
configure.pl updates it), I will change master to $useFHS = 1.

Craig

On Mon, Feb 6, 2017 at 10:02 PM, Michael Huntley <[email protected]>
wrote:

> Hey guys,
>
> noticed a change to Lib.pm from v3.x in v4.x that is causing headaches.
> ConfDir values appear to be swapped...
>
> In Lib.pm:
> if ( $useFHS ) {
>          $paths = {
>              useFHS     => $useFHS,
>              TopDir     => $topDir,
>              InstallDir => $installDir,
>              ConfDir    => $confDir eq "" ? '/etc/backuppc' : $confDir,
>              LogDir     => '/var/log/BackupPC',
>              RunDir     => '/var/run/BackupPC',
>          };
>      } else {
>          $paths = {
>              useFHS     => $useFHS,
>              TopDir     => $topDir,
>              InstallDir => $installDir,
>              ConfDir    => $confDir eq "" ? "$topDir/conf" : $confDir,
>              LogDir     => "$topDir/log",
>              RunDir     => "$topDir/log",
>          };
>
> Upgrades will not work with this current configuration.  ConfDir values
> for non FHS ConfDir should be set to '/etc/backuppc' for the upgrade to
> work.  New installs do not work either as the default setup sets $useFHS
> = 0 and places the config.pl in '/etc/backuppc'. This is from the latest
> 4.x git repo using makeDist.
>
> A big Thank You to you all for such a great product!
>
> Cheers,
>
> mph
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> BackupPC-users mailing list
> [email protected]
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to