Gitlab Community Edition Instance

Commit ff937187 authored by bnachtw's avatar bnachtw
Browse files

removed trainline / or \ on SNAPSHOTROOTPATH, renamed linux sample file

parent 4fbabf59
......@@ -6,6 +6,7 @@
# options available:
# MAXTHREADS=<Number> # maximum number of parallel threads to be used
# OPTIONFILE=<Path and Name> # .. of dsm.opt file (or however it is called)
# SNAPSHOTROOT=<Path to snapshot> # variables such as $SNAPSHOTROOT can be used
MAXTHREADS = 2 * in this example just 3 threads
STARTPATH = /home/
MODE = SCHED
......
......@@ -72,7 +72,7 @@
#
##############################################################################
my $debugmode = 0; # 1 equals TRUE, enabels some printf debugging and prevents removing logfiles
my $debugmode = 1; # 1 equals TRUE, enabels some printf debugging and prevents removing logfiles
##############################################################################
##############################################################################
# global settings / global variables
......@@ -141,7 +141,8 @@ my $actpath; # starting path actually processed
my $actpathdir; # name of the actually procces path for logging
my $maxdepth = 3; # number of directory level to dive into, right here all folders are processed with "-su=y"
my $depth = ($maxdepth - 1); # just one level above $maxdepth, down to here all folders are processed with "-su=n"
my $options; # options given to dsmci like "-abs" or "-snapshotroot"
my $options; # options given to dsmci like "-abs"
my $snapshotroot = undef; #
my $cfgfilename = "dsmci.cfg"; # name of config file, should be located in current folder
my $log_filename; # filename for logging
......@@ -287,6 +288,8 @@ if ( defined $CFGFILE )
{
(undef, $snapshotroot) = split '=', $line2;
$snapshotroot =~ s/^\s+|\s+$//g;
$snapshotroot =~ s#/$##; # remove trailing "/"
$snapshotroot =~ s#\\$##; # remove trailing "\"
}
elsif ( $line2 =~ /^STARTPATH/ )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment