Regenerated
This commit is contained in:
@@ -18,15 +18,15 @@ in
|
||||
# Always use /bin/sh -c for multi-line commands
|
||||
serviceConfig.ExecStart = ''
|
||||
/bin/sh -c '
|
||||
echo "Copying assets from ${assetPath} to ${homeDir} ..."
|
||||
echo "Copying assets from ${assetPath} to ${homeDir}/Droidnix ..."
|
||||
|
||||
if [ ! -d "${assetPath}" ]; then
|
||||
echo "ERROR: ${assetPath} does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "${homeDir}"
|
||||
chown ${username}:${username} "${homeDir}"
|
||||
mkdir -p "${homeDir}/Droidnix"
|
||||
chown u+rwx ${username}:${username} "${homeDir}/Droidnix"
|
||||
|
||||
${pkgs.rsync}/bin/rsync -a --no-owner --no-group "${assetPath}/" "${homeDir}/"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user