mirror of
				https://git.cloudron.io/cloudron/syncthing-app
				synced 2025-11-04 00:42:33 +00:00 
			
		
		
		
	Not creating a default share
This commit is contained in:
		
							
								
								
									
										5
									
								
								start.sh
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								start.sh
									
									
									
									
									
								
							@@ -4,12 +4,12 @@ set -eu
 | 
			
		||||
 | 
			
		||||
mkdir -p /app/data/config
 | 
			
		||||
 | 
			
		||||
export STNODEFAULTFOLDER=1 STNOUPGRADE=1
 | 
			
		||||
 | 
			
		||||
# if this if the first run, generate a useful config
 | 
			
		||||
if [ ! -f /app/data/config/config.xml ]; then
 | 
			
		||||
  echo "=> Generating config"
 | 
			
		||||
  /app/code/syncthing --generate="/app/data/config"
 | 
			
		||||
  # don't take the whole volume with the default so that we can add additional folders
 | 
			
		||||
  sed -i "s/path=\"\/root\/Sync\/\" /path=\"\/app\/data\/default\/\"/g" /app/data/config/config.xml
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
cat >/run/ldap.conf <<EOF
 | 
			
		||||
@@ -29,6 +29,5 @@ sed -e 's,<gui .*>,<gui enabled="true" tls="false" debugging="false">,' -i /app/
 | 
			
		||||
 | 
			
		||||
chown -R cloudron:cloudron /app/data/config /app/data
 | 
			
		||||
 | 
			
		||||
export STNODEFAULTFOLDER=1 STNOUPGRADE=1
 | 
			
		||||
exec busybox init
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user